/* ============================================================
   BLANZA THEME — main.css v1.1.0
   Vanilla CSS, mobile-first. Shared design-system variables below
   mirror the Blanza Tools plugin contract so theme + plugin read
   as one seamless site. Dark mode overrides live under
   html[data-blanza-dark] (toggled by assets/js/main.js).
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root{
  --bt-accent:#4F46E5;
  --bt-accent2:#7C3AED;
  --bt-accent-2:#7C3AED; /* alias: plugin CSS uses --bt-accent-2 */
  --bt-soft:#EEF0FF;
  --bt-bg:#F6F7FB;
  --bt-card:#FFFFFF;
  --bt-text:#111827;
  --bt-muted:#6B7280;
  --bt-border:#E5E7EB;
  --bt-radius:18px;
  --bt-radius-sm:12px;
  --bt-shadow:0 10px 30px rgba(79,70,229,.10);
  --bt-shadow-lg:0 18px 46px rgba(79,70,229,.16);
  --bt-grad:linear-gradient(135deg,#4F46E5 0%,#7C3AED 100%);
  --bt-font:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --bt-header-bg:rgba(255,255,255,.82);
  color-scheme:light;
}

html[data-blanza-dark]{
  --bt-soft:#1B2140;
  --bt-bg:#0B1020;
  --bt-card:#141B30;
  --bt-text:#E8EAF2;
  --bt-muted:#9AA3B8;
  --bt-border:#232C47;
  --bt-shadow:0 10px 30px rgba(0,0,0,.38);
  --bt-shadow-lg:0 18px 46px rgba(0,0,0,.5);
  --bt-header-bg:rgba(11,16,32,.82);
  color-scheme:dark;
}

/* ---------- 2. Reset-ish base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--bt-font);
  background:var(--bt-bg);
  color:var(--bt-text);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  transition:background-color .25s ease,color .25s ease;
}
h1,h2,h3,h4,p,ul,ol,figure,blockquote{margin:0 0 1rem}
ul,ol{padding-left:1.4rem}
img,svg,video{max-width:100%;height:auto}
a{color:var(--bt-accent);text-decoration:none}
a:hover{text-decoration:underline}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:1rem}
:focus-visible{outline:3px solid var(--bt-accent);outline-offset:2px;border-radius:6px}

/* ---------- 3. Utilities / layout ---------- */
.bt-container{max-width:1140px;margin:0 auto;padding-left:20px;padding-right:20px}
.bt-narrow{max-width:780px}
.bt-main{display:block}
.bt-section{padding:56px 0}
.bt-section-title{font-size:1.6rem;font-weight:800;letter-spacing:-.02em;text-align:center;margin-bottom:2rem}

.bt-screen-reader-text{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.bt-skip-link{
  position:absolute;left:12px;top:-60px;z-index:2000;
  background:var(--bt-accent);color:#fff;padding:10px 18px;border-radius:10px;
  font-weight:700;transition:top .2s;
}
.bt-skip-link:focus{top:12px;color:#fff;text-decoration:none}

.bt-grad-text{
  background:var(--bt-grad);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}

.bt-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--bt-grad);color:#fff;border:none;border-radius:var(--bt-radius-sm);
  padding:14px 30px;font-size:1rem;font-weight:700;cursor:pointer;
  box-shadow:0 6px 18px rgba(79,70,229,.28);
  transition:transform .15s ease,box-shadow .15s ease;
}
.bt-btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(79,70,229,.36);color:#fff;text-decoration:none}
.bt-btn:active{transform:translateY(0)}

/* ---------- 4. Header ---------- */
.bt-header{
  position:sticky;top:0;z-index:1000;
  background:var(--bt-header-bg);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--bt-border);
  transition:background-color .25s ease,border-color .25s ease;
}
.bt-header-inner{display:flex;align-items:center;gap:16px;min-height:68px}
.bt-brand{margin-right:auto}
.bt-logo{display:inline-flex;align-items:center;gap:10px;color:var(--bt-text)}
.bt-logo:hover{text-decoration:none}
.bt-logo-mark{
  width:38px;height:38px;border-radius:12px;background:var(--bt-grad);
  display:inline-flex;align-items:center;justify-content:center;font-size:1.25rem;flex-shrink:0;
}
.bt-logo-text{font-size:1.3rem;font-weight:800;letter-spacing:-.02em}
.bt-logo-text em{font-style:normal;background:var(--bt-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
.custom-logo{max-height:44px;width:auto}

/* Primary nav (desktop) */
.bt-nav{display:none}
.bt-menu{list-style:none;margin:0;padding:0;display:flex;gap:4px}
.bt-menu a{
  display:block;padding:10px 14px;border-radius:10px;
  color:var(--bt-text);font-weight:600;font-size:.95rem;
}
.bt-menu a:hover{background:var(--bt-soft);color:var(--bt-accent);text-decoration:none}
.bt-menu .current-menu-item > a,
.bt-menu .current_page_item > a{color:var(--bt-accent)}

/* Header actions */
.bt-header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.bt-nav + .bt-header-actions{margin-left:0}

.bt-dark-toggle{
  width:42px;height:42px;border-radius:50%;
  border:1.5px solid var(--bt-border);background:var(--bt-card);color:var(--bt-text);
  display:inline-flex;align-items:center;justify-content:center;font-size:1.15rem;
  transition:transform .2s ease,border-color .2s ease,background-color .25s ease;
}
.bt-dark-toggle:hover{transform:rotate(18deg) scale(1.06);border-color:var(--bt-accent)}

.bt-hamburger{
  width:42px;height:42px;border-radius:12px;
  border:1.5px solid var(--bt-border);background:var(--bt-card);
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
}
.bt-hamburger span{display:block;width:20px;height:2px;border-radius:2px;background:var(--bt-text);transition:transform .2s ease,opacity .2s ease}
.bt-hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.bt-hamburger[aria-expanded="true"] span:nth-child(2){opacity:0}
.bt-hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Mobile drawer */
.bt-mobile-nav{
  border-top:1px solid var(--bt-border);
  background:var(--bt-header-bg);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  padding:10px 20px 18px;
}
.bt-mobile-nav[hidden]{display:none}
.bt-menu-mobile{flex-direction:column;gap:2px}
.bt-menu-mobile a{padding:12px 10px;font-size:1.05rem}

/* ---------- 5. Hero ---------- */
.bt-hero{position:relative;overflow:hidden;padding:72px 0 64px}
.bt-hero-glow{position:absolute;inset:0;pointer-events:none}
.bt-hero-glow::before,
.bt-hero-glow::after{
  content:"";position:absolute;border-radius:50%;filter:blur(90px);opacity:.5;
}
.bt-hero-glow::before{
  width:480px;height:480px;left:-140px;top:-160px;
  background:radial-gradient(circle,rgba(79,70,229,.35),transparent 70%);
}
.bt-hero-glow::after{
  width:520px;height:520px;right:-160px;top:-120px;
  background:radial-gradient(circle,rgba(124,58,237,.32),transparent 70%);
}
html[data-blanza-dark] .bt-hero-glow::before{opacity:.32}
html[data-blanza-dark] .bt-hero-glow::after{opacity:.3}

.bt-hero-inner{position:relative;text-align:center;max-width:820px}
.bt-badge{
  display:inline-block;padding:8px 18px;border-radius:999px;
  background:var(--bt-soft);border:1px solid var(--bt-border);
  color:var(--bt-accent);font-weight:700;font-size:.85rem;letter-spacing:.02em;
  margin-bottom:20px;
}
.bt-hero-title{
  font-size:2.35rem;font-weight:800;letter-spacing:-.03em;line-height:1.15;
  margin-bottom:16px;
}
.bt-hero-sub{font-size:1.1rem;color:var(--bt-muted);max-width:640px;margin:0 auto 30px}

/* Hero search */
.bt-search-wrap{position:relative;max-width:560px;margin:0 auto 30px}
.bt-search-input{
  width:100%;padding:17px 52px 17px 22px;font-size:1.05rem;
  border:2px solid var(--bt-border);border-radius:999px;
  background:var(--bt-card);color:var(--bt-text);
  box-shadow:var(--bt-shadow);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.bt-search-input::placeholder{color:var(--bt-muted)}
.bt-search-input:focus{
  outline:none;border-color:var(--bt-accent);
  box-shadow:0 0 0 4px rgba(79,70,229,.15),var(--bt-shadow);
}
.bt-search-icon{
  position:absolute;right:22px;top:50%;transform:translateY(-50%);
  font-size:1.25rem;pointer-events:none;
}

/* Stats row */
.bt-stats{
  list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:wrap;justify-content:center;gap:14px 40px;
}
.bt-stats li{display:flex;flex-direction:column;align-items:center;gap:2px}
.bt-stats strong{font-size:1.5rem;font-weight:800;letter-spacing:-.02em;background:var(--bt-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
.bt-stats span{font-size:.82rem;color:var(--bt-muted);font-weight:600}

/* ---------- 6. Tool directory ---------- */
.bt-cat-block{margin-bottom:44px}
.bt-cat-block:last-child{margin-bottom:0}
.bt-cat-title{
  font-size:1.35rem;font-weight:800;letter-spacing:-.02em;
  margin-bottom:18px;display:flex;align-items:center;gap:12px;
}
.bt-cat-title::after{content:"";flex:1;height:1px;background:var(--bt-border)}

.bt-tools-grid{
  display:grid;gap:16px;
  grid-template-columns:1fr;
}
.bt-tool-card{
  display:flex;flex-direction:column;gap:8px;
  background:var(--bt-card);border:1px solid var(--bt-border);
  border-radius:var(--bt-radius);padding:26px 24px;
  color:var(--bt-text);
  box-shadow:var(--bt-shadow);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.bt-tool-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--bt-shadow-lg);
  border-color:var(--bt-accent);
  text-decoration:none;
}
.bt-tool-icon{font-size:2rem;line-height:1}
.bt-tool-title{font-size:1.08rem;font-weight:700;letter-spacing:-.01em}
.bt-tool-desc{font-size:.92rem;color:var(--bt-muted);flex:1}
.bt-tool-cta{font-size:.9rem;font-weight:700;color:var(--bt-accent);margin-top:6px}
.bt-tool-card[hidden]{display:none}

.bt-no-results{
  text-align:center;color:var(--bt-muted);font-size:1.05rem;
  background:var(--bt-card);border:1px dashed var(--bt-border);
  border-radius:var(--bt-radius);padding:36px 24px;margin:8px 0 0;
}
.bt-no-results[hidden]{display:none}

/* ---------- 7. Features ---------- */
.bt-features{background:var(--bt-card);border-top:1px solid var(--bt-border);border-bottom:1px solid var(--bt-border);transition:background-color .25s ease}
.bt-features-grid{display:grid;gap:18px;grid-template-columns:1fr}
.bt-feature{
  background:var(--bt-bg);border:1px solid var(--bt-border);
  border-radius:var(--bt-radius);padding:30px 26px;text-align:center;
  transition:transform .18s ease,box-shadow .18s ease;
}
.bt-feature:hover{transform:translateY(-4px);box-shadow:var(--bt-shadow)}
.bt-feature-icon{font-size:2.2rem;display:block;margin-bottom:14px}
.bt-feature h3{font-size:1.1rem;font-weight:700;margin-bottom:8px}
.bt-feature p{font-size:.94rem;color:var(--bt-muted);margin:0}

/* ---------- 8. FAQ ---------- */
.bt-faq{max-width:100%}
.bt-faq details{
  background:var(--bt-card);border:1px solid var(--bt-border);
  border-radius:var(--bt-radius-sm);margin-bottom:12px;overflow:hidden;
  transition:border-color .2s ease;
}
.bt-faq details[open]{border-color:var(--bt-accent)}
.bt-faq summary{
  padding:18px 20px;font-weight:600;cursor:pointer;list-style:none;
  display:flex;justify-content:space-between;align-items:center;gap:14px;
}
.bt-faq summary::-webkit-details-marker{display:none}
.bt-faq summary::after{
  content:"+";font-size:1.5rem;line-height:1;color:var(--bt-accent);
  font-weight:700;flex-shrink:0;transition:transform .2s ease;
}
.bt-faq details[open] summary::after{content:"–"}
.bt-faq details p{padding:0 20px 20px;color:var(--bt-muted);font-size:.95rem;margin:0}

/* ---------- 9. CTA band ---------- */
.bt-cta{background:var(--bt-grad);color:#fff;padding:64px 0;margin-top:56px;position:relative;overflow:hidden}
.bt-cta::before{
  content:"";position:absolute;width:600px;height:600px;border-radius:50%;
  right:-200px;top:-300px;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 70%);
}
.bt-cta-inner{position:relative;text-align:center}
.bt-cta h2{font-size:1.8rem;font-weight:800;letter-spacing:-.02em;margin-bottom:10px}
.bt-cta p{opacity:.92;max-width:560px;margin:0 auto 26px}
.bt-cta .bt-btn{background:#fff;color:var(--bt-accent);box-shadow:0 8px 24px rgba(0,0,0,.2)}
.bt-cta .bt-btn:hover{color:var(--bt-accent2);box-shadow:0 12px 30px rgba(0,0,0,.26)}

/* ---------- 10. Ad slots ---------- */
.bt-ad-wrap{padding-top:18px;padding-bottom:6px}
.bt-ad{
  text-align:center;margin:14px auto;max-width:100%;overflow:hidden;
}
.bt-ad:empty{display:none}
/* Subtle dashed frame while an ad slot awaits code (never shown when empty,
   since an empty slot renders only an HTML comment). */
.bt-ad.bt-ad-placeholder{
  border:2px dashed var(--bt-border);border-radius:var(--bt-radius-sm);
  padding:34px 20px;color:var(--bt-muted);font-size:.85rem;
}

/* ---------- 11. Footer ---------- */
.bt-footer{
  background:var(--bt-card);border-top:1px solid var(--bt-border);
  margin-top:0;padding:56px 0 0;
  transition:background-color .25s ease;
}
.bt-footer-grid{
  display:grid;gap:32px;grid-template-columns:1fr 1fr;
  padding-bottom:40px;
}
.bt-footer-heading{
  font-size:.95rem;font-weight:700;letter-spacing:.02em;
  margin-bottom:14px;color:var(--bt-text);
}
.bt-footer-col ul{list-style:none;margin:0;padding:0}
.bt-footer-col li{margin-bottom:9px}
.bt-footer-col a{color:var(--bt-muted);font-size:.93rem}
.bt-footer-col a:hover{color:var(--bt-accent);text-decoration:none}

.bt-footer-bottom{
  border-top:1px solid var(--bt-border);
  padding:22px 0;display:flex;flex-direction:column;gap:12px;align-items:center;
  text-align:center;
}
.bt-copyright{margin:0;font-size:.88rem;color:var(--bt-muted)}
.bt-menu-footer{list-style:none;margin:0;padding:0;display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.bt-menu-footer a{font-size:.88rem;color:var(--bt-muted);padding:6px 10px}
.bt-menu-footer a:hover{color:var(--bt-accent);text-decoration:none;background:none}

/* ---------- 12. Articles, loop, 404, tool pages ---------- */
.bt-page-wrap{padding-top:44px;padding-bottom:56px}
.bt-article-header{margin-bottom:26px}
.bt-article-title{font-size:2rem;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.bt-article-meta{color:var(--bt-muted);font-size:.9rem;margin:8px 0 0}
.bt-article-thumb{margin-bottom:26px}
.bt-article-thumb img{border-radius:var(--bt-radius)}
.bt-article-content{font-size:1.02rem}
.bt-article-content h2{font-size:1.45rem;font-weight:800;letter-spacing:-.01em;margin:2rem 0 1rem}
.bt-article-content h3{font-size:1.2rem;font-weight:700;margin:1.6rem 0 .8rem}

.bt-loop-item{
  background:var(--bt-card);border:1px solid var(--bt-border);
  border-radius:var(--bt-radius);padding:26px;margin-bottom:20px;
  box-shadow:var(--bt-shadow);
}
.bt-loop-title{font-size:1.3rem;font-weight:700;margin-bottom:8px}
.bt-loop-title a{color:var(--bt-text)}
.bt-loop-title a:hover{color:var(--bt-accent);text-decoration:none}
.bt-loop-excerpt{color:var(--bt-muted);margin:0}
.bt-loop-excerpt p{margin:0}
.bt-pagination{margin-top:28px;text-align:center}
.bt-pagination .page-numbers{
  display:inline-block;padding:9px 15px;border:1px solid var(--bt-border);
  border-radius:10px;margin:0 4px;color:var(--bt-text);font-weight:600;background:var(--bt-card);
}
.bt-pagination .page-numbers.current{background:var(--bt-grad);color:#fff;border-color:transparent}
.bt-pagination a.page-numbers:hover{border-color:var(--bt-accent);color:var(--bt-accent);text-decoration:none}

.bt-404{text-align:center;padding:80px 20px 90px}
.bt-404-icon{font-size:3.4rem;display:block;margin-bottom:18px}
.bt-404-title{font-size:2.2rem;font-weight:800;letter-spacing:-.02em;margin-bottom:12px}
.bt-404-text{color:var(--bt-muted);max-width:480px;margin:0 auto 26px}
.bt-404-search{display:flex;gap:10px;max-width:460px;margin:0 auto 22px}
.bt-404-search .bt-search-input{border-radius:var(--bt-radius-sm);box-shadow:none;padding:13px 18px}
.bt-404-links a{font-weight:600}

.bt-tool-page-wrap{padding-top:8px;padding-bottom:56px;max-width:1140px}
.bt-tool-page{margin:0}
.bt-tool-content{margin:0}

/* ---------- 13. Breakpoints ---------- */
@media (min-width:640px){
  .bt-tools-grid{grid-template-columns:repeat(2,1fr)}
  .bt-features-grid{grid-template-columns:repeat(3,1fr)}
  .bt-footer-grid{grid-template-columns:repeat(4,1fr)}
  .bt-footer-bottom{flex-direction:row;justify-content:space-between;text-align:left}
  .bt-hero-title{font-size:2.9rem}
}

@media (min-width:900px){
  .bt-nav{display:block}
  .bt-hamburger{display:none}
  .bt-mobile-nav{display:none}
  .bt-tools-grid{grid-template-columns:repeat(3,1fr)}
  .bt-section{padding:72px 0}
  .bt-hero{padding:96px 0 84px}
  .bt-hero-title{font-size:3.4rem}
}

@media (min-width:1100px){
  .bt-tools-grid{grid-template-columns:repeat(4,1fr)}
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none !important;animation:none !important}
}

/* ============================================================
   15. BLOG — listing, cards, single article (v1.1.0)
   ============================================================ */

/* --- 15a. Reading progress bar --- */
.bt-progress{
  position:fixed;top:0;left:0;right:0;height:3px;z-index:1200;
  background:transparent;pointer-events:none;
}
.bt-progress span{display:block;height:100%;width:0;background:var(--bt-grad)}

/* --- 15b. Breadcrumb --- */
.bt-crumbs{
  font-size:.84rem;color:var(--bt-muted);margin:0 0 22px;
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
}
.bt-crumbs a{color:var(--bt-muted)}
.bt-crumbs a:hover{color:var(--bt-accent);text-decoration:none}
.bt-crumb-sep{opacity:.6}
.bt-crumb-current{
  color:var(--bt-text);font-weight:600;max-width:340px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* --- 15c. Single article hero --- */
.bt-blog-wrap{padding-top:30px;padding-bottom:64px;max-width:1140px}
.bt-post{max-width:1140px}
.bt-post-hero{max-width:820px;margin:0 auto 30px;text-align:center}
.bt-cat-chip{
  display:inline-block;padding:6px 15px;border-radius:999px;
  background:var(--bt-soft);border:1px solid var(--bt-border);
  color:var(--bt-accent);font-size:.76rem;font-weight:700;
  letter-spacing:.05em;text-transform:uppercase;margin-bottom:16px;
}
.bt-cat-chip:hover{text-decoration:none}
.bt-cat-chip-sm{font-size:.7rem;padding:5px 12px;margin-bottom:0}
.bt-post-title{
  font-size:2.05rem;font-weight:800;letter-spacing:-.025em;
  line-height:1.18;margin-bottom:14px;
}
.bt-post-sub{font-size:1.1rem;color:var(--bt-muted);margin-bottom:22px;line-height:1.6}
.bt-post-meta{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  gap:8px 14px;font-size:.9rem;color:var(--bt-muted);margin-bottom:20px;
}
.bt-post-author{display:inline-flex;align-items:center;gap:10px;font-weight:600;color:var(--bt-text)}
.bt-post-author img{border-radius:50%;width:40px;height:40px}
.bt-post-author a{color:var(--bt-text)}
.bt-post-author a:hover{color:var(--bt-accent);text-decoration:none}
.bt-meta-sep{opacity:.5}
.bt-post-meta a{color:var(--bt-muted)}
.bt-post-meta a:hover{color:var(--bt-accent);text-decoration:none}

/* --- 15d. Share buttons --- */
.bt-share{display:flex;align-items:center;justify-content:center;gap:10px;margin:0}
.bt-share-label{
  font-size:.76rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.07em;color:var(--bt-muted);margin-right:4px;
}
.bt-share-btn{
  width:40px;height:40px;border-radius:50%;
  border:1px solid var(--bt-border);background:var(--bt-card);color:var(--bt-text);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:.95rem;font-weight:800;line-height:1;position:relative;
  transition:transform .15s ease,border-color .15s ease,color .15s ease,background-color .15s ease;
}
a.bt-share-btn:hover{transform:translateY(-2px);border-color:var(--bt-accent);color:var(--bt-accent);text-decoration:none}
button.bt-share-btn:hover{transform:translateY(-2px);border-color:var(--bt-accent);color:var(--bt-accent)}
.bt-share-tip{
  position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%) translateY(4px);
  background:var(--bt-text);color:var(--bt-bg);font-size:.72rem;font-weight:700;
  padding:5px 10px;border-radius:8px;white-space:nowrap;opacity:0;pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}
.bt-share-btn.is-copied{border-color:var(--bt-accent);color:var(--bt-accent)}
.bt-share-btn.is-copied .bt-share-tip{opacity:1;transform:translateX(-50%) translateY(0)}

/* --- 15e. Featured image --- */
.bt-post-figure{margin:0 0 36px;border-radius:var(--bt-radius);overflow:hidden;box-shadow:var(--bt-shadow)}
.bt-post-figure img{width:100%;display:block}
.bt-post-figure figcaption{
  padding:12px 20px;font-size:.82rem;color:var(--bt-muted);
  background:var(--bt-card);border-top:1px solid var(--bt-border);
}

/* --- 15f. Article layout + sticky TOC --- */
.bt-post-layout{display:grid;gap:34px;grid-template-columns:minmax(0,1fr)}
.bt-post-sidebar{min-width:0}
.bt-toc{
  background:var(--bt-card);border:1px solid var(--bt-border);
  border-radius:var(--bt-radius-sm);padding:20px 22px;box-shadow:var(--bt-shadow);
}
.bt-toc[hidden]{display:none}
.bt-toc h2{
  font-size:.78rem;font-weight:800;text-transform:uppercase;
  letter-spacing:.07em;color:var(--bt-muted);margin-bottom:12px;
}
.bt-toc ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;font-size:.9rem;line-height:1.4}
.bt-toc a{color:var(--bt-muted)}
.bt-toc a:hover{color:var(--bt-accent);text-decoration:none}
.bt-toc a.is-active{color:var(--bt-accent);font-weight:700}

/* --- 15g. Article typography --- */
.bt-post-content{font-size:1.06rem;line-height:1.8;min-width:0;overflow-wrap:break-word}
.bt-post-content > p:first-of-type::first-letter{
  float:left;font-size:3.3em;line-height:.85;font-weight:800;
  padding:6px 10px 0 0;color:var(--bt-accent);
}
.bt-post-content h2{
  font-size:1.5rem;font-weight:800;letter-spacing:-.015em;
  margin:2.2rem 0 1rem;line-height:1.3;scroll-margin-top:96px;
}
.bt-post-content h3{font-size:1.22rem;font-weight:700;margin:1.8rem 0 .8rem;scroll-margin-top:96px}
.bt-post-content h4{font-size:1.05rem;font-weight:700;margin:1.5rem 0 .6rem}
.bt-post-content p{margin-bottom:1.25rem}
.bt-post-content ul,.bt-post-content ol{margin-bottom:1.25rem}
.bt-post-content li{margin-bottom:.45rem}
.bt-post-content a{font-weight:600}
.bt-post-content img{border-radius:var(--bt-radius-sm);box-shadow:var(--bt-shadow)}
.bt-post-content figure{margin:0 0 1.5rem}
.bt-post-content figcaption{font-size:.85rem;color:var(--bt-muted);text-align:center;margin-top:8px}

/* Pull quotes */
.bt-post-content blockquote{
  margin:2rem 0;padding:6px 0 6px 26px;position:relative;
  border-left:4px solid transparent;
  border-image:linear-gradient(180deg,var(--bt-accent),var(--bt-accent2)) 1;
  font-size:1.18rem;font-style:italic;line-height:1.6;color:var(--bt-text);
}
.bt-post-content blockquote p{margin-bottom:.6rem}
.bt-post-content blockquote cite{
  display:block;font-size:.85rem;font-style:normal;color:var(--bt-muted);margin-top:8px;
}

/* Code */
.bt-post-content code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.88em;background:var(--bt-soft);border:1px solid var(--bt-border);
  border-radius:6px;padding:2px 7px;color:var(--bt-accent);
}
html[data-blanza-dark] .bt-post-content code{color:#C4B5FD}
.bt-post-content pre{
  background:#141B30;color:#E8EAF2;border-radius:var(--bt-radius-sm);
  padding:20px;overflow-x:auto;margin:0 0 1.5rem;font-size:.9rem;line-height:1.6;
}
.bt-post-content pre code{background:none;border:none;padding:0;color:inherit}

/* Tables */
.bt-post-content table{width:100%;border-collapse:collapse;margin:0 0 1.5rem;font-size:.95rem}
.bt-post-content th,.bt-post-content td{
  border:1px solid var(--bt-border);padding:10px 14px;text-align:left;
}
.bt-post-content th{background:var(--bt-soft);font-weight:700}
.bt-post-content thead th:first-child{border-top-left-radius:10px}
.bt-post-content thead th:last-child{border-top-right-radius:10px}

/* Captions, embeds */
.bt-post-content .wp-caption{max-width:100%}
.bt-post-content iframe{max-width:100%;border-radius:var(--bt-radius-sm)}

/* --- 15h. Related tools CTA band --- */
.bt-tools-cta{
  margin:46px 0;background:var(--bt-grad);color:#fff;
  border-radius:var(--bt-radius);padding:36px 34px;
  position:relative;overflow:hidden;box-shadow:var(--bt-shadow-lg);
}
.bt-tools-cta::before{
  content:"";position:absolute;width:480px;height:480px;border-radius:50%;
  right:-160px;top:-240px;background:radial-gradient(circle,rgba(255,255,255,.16),transparent 70%);
}
.bt-tools-cta h2{
  position:relative;font-size:1.45rem;font-weight:800;letter-spacing:-.02em;margin-bottom:8px;
}
.bt-tools-cta > p{position:relative;opacity:.92;margin-bottom:22px;max-width:560px}
.bt-tools-cta-grid{position:relative;display:grid;gap:14px;grid-template-columns:1fr}
.bt-tool-mini{
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);
  border-radius:var(--bt-radius-sm);padding:20px;color:#fff;
  display:flex;flex-direction:column;gap:6px;
  transition:transform .16s ease,background-color .16s ease;
}
.bt-tool-mini:hover{background:rgba(255,255,255,.22);color:#fff;text-decoration:none;transform:translateY(-3px)}
.bt-tool-mini-icon{font-size:1.7rem}
.bt-tool-mini-title{font-weight:700;font-size:1rem}
.bt-tool-mini-cta{font-size:.86rem;font-weight:700;opacity:.9}

/* --- 15i. Related posts --- */
.bt-related-posts{margin:46px 0 0}
.bt-related-posts .bt-section-title{margin-bottom:1.6rem}

/* --- 15j. Author box --- */
.bt-author-box{
  display:flex;gap:20px;align-items:flex-start;
  background:var(--bt-card);border:1px solid var(--bt-border);
  border-radius:var(--bt-radius);padding:28px;margin:44px 0;box-shadow:var(--bt-shadow);
}
.bt-author-avatar{border-radius:50%;flex-shrink:0;width:96px;height:96px}
.bt-author-label{
  font-size:.76rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.07em;color:var(--bt-muted);margin-bottom:4px;
}
.bt-author-name{font-size:1.15rem;font-weight:800;margin-bottom:8px}
.bt-author-name a{color:var(--bt-text)}
.bt-author-name a:hover{color:var(--bt-accent);text-decoration:none}
.bt-author-bio{color:var(--bt-muted);font-size:.94rem;margin:0}

/* --- 15k. Prev / next post nav --- */
.bt-post-nav{display:grid;gap:14px;grid-template-columns:1fr;margin:0 0 44px}
.bt-post-nav-link{
  background:var(--bt-card);border:1px solid var(--bt-border);
  border-radius:var(--bt-radius-sm);padding:20px 22px;display:block;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.bt-post-nav-link:hover{border-color:var(--bt-accent);text-decoration:none;transform:translateY(-2px);box-shadow:var(--bt-shadow)}
.bt-post-nav-next{text-align:right}
.bt-post-nav-label{
  display:block;font-size:.78rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;color:var(--bt-muted);margin-bottom:6px;
}
.bt-post-nav-title{color:var(--bt-text);font-weight:700;line-height:1.4}

/* --- 15l. Comments --- */
.bt-comments{margin:0 0 20px}
.comments-title,.comment-reply-title{
  font-size:1.35rem;font-weight:800;letter-spacing:-.02em;margin-bottom:20px;
}
.comment-list{list-style:none;margin:0 0 30px;padding:0}
.comment-list .children{list-style:none;margin:18px 0 0;padding-left:22px;border-left:2px solid var(--bt-border)}
.comment-body{
  background:var(--bt-card);border:1px solid var(--bt-border);
  border-radius:var(--bt-radius-sm);padding:20px 22px;margin-bottom:16px;
}
.comment-author{display:flex;align-items:center;gap:12px;margin-bottom:6px;font-weight:700}
.comment-author .avatar{border-radius:50%;width:44px;height:44px}
.comment-author .says{display:none}
.comment-meta{font-size:.82rem;color:var(--bt-muted);margin-bottom:10px}
.comment-meta a{color:var(--bt-muted)}
.comment-content{font-size:.96rem}
.comment-content p{margin-bottom:.8rem}
.reply{margin-top:10px}
.comment-reply-link{
  display:inline-block;font-size:.84rem;font-weight:700;color:var(--bt-accent);
  border:1px solid var(--bt-border);border-radius:8px;padding:6px 14px;
}
.comment-reply-link:hover{text-decoration:none;border-color:var(--bt-accent)}
.comment-awaiting-moderation{font-style:italic;color:var(--bt-muted);font-size:.88rem}
.comment-form{
  background:var(--bt-card);border:1px solid var(--bt-border);
  border-radius:var(--bt-radius);padding:28px;box-shadow:var(--bt-shadow);
}
.comment-form p{margin-bottom:16px}
.comment-form label{display:block;font-weight:600;font-size:.9rem;margin-bottom:6px}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width:100%;border:1.5px solid var(--bt-border);border-radius:10px;
  padding:12px 14px;background:var(--bt-bg);color:var(--bt-text);
  transition:border-color .15s ease;
}
.comment-form input:focus,.comment-form textarea:focus{
  outline:none;border-color:var(--bt-accent);box-shadow:0 0 0 3px rgba(79,70,229,.14);
}
.comment-form .form-submit{margin-bottom:0}
.comment-form #submit{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--bt-grad);color:#fff;border:none;border-radius:var(--bt-radius-sm);
  padding:13px 30px;font-size:1rem;font-weight:700;cursor:pointer;
  box-shadow:0 6px 18px rgba(79,70,229,.28);
  transition:transform .15s ease,box-shadow .15s ease;
}
.comment-form #submit:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(79,70,229,.36)}
.comment-notes,.logged-in-as{font-size:.88rem;color:var(--bt-muted)}

/* --- 15m. Blog hero (listing pages) --- */
.bt-blog-hero{
  background:var(--bt-card);border-bottom:1px solid var(--bt-border);
  padding:58px 0 42px;text-align:center;
  transition:background-color .25s ease;
}
.bt-blog-kicker{
  font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.09em;
  color:var(--bt-accent);margin-bottom:10px;
}
.bt-blog-title{
  font-size:2.4rem;font-weight:800;letter-spacing:-.03em;line-height:1.1;margin-bottom:12px;
}
.bt-blog-sub{color:var(--bt-muted);font-size:1.05rem;max-width:620px;margin:0 auto}
.bt-blog-sub p{margin-bottom:.6rem}
.bt-blog-search{position:relative;max-width:480px;margin:26px auto 0}
.bt-blog-search .bt-search-input{padding-right:52px}

/* --- 15n. Category filter chips --- */
.bt-chips{
  display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:26px;
}
.bt-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 18px;border-radius:999px;
  border:1px solid var(--bt-border);background:var(--bt-card);
  color:var(--bt-text);font-size:.88rem;font-weight:600;
  transition:border-color .15s ease,transform .15s ease,background-color .15s ease;
}
.bt-chip:hover{border-color:var(--bt-accent);color:var(--bt-accent);text-decoration:none;transform:translateY(-1px)}
.bt-chip.is-active{background:var(--bt-grad);color:#fff;border-color:transparent;box-shadow:0 6px 16px rgba(79,70,229,.3)}
.bt-chip.is-active:hover{color:#fff}
.bt-chip-count{
  font-size:.72rem;font-weight:700;background:var(--bt-soft);
  border-radius:999px;padding:2px 9px;color:var(--bt-muted);
}
.bt-chip.is-active .bt-chip-count{background:rgba(255,255,255,.22);color:#fff}

/* --- 15o. Post cards + grids --- */
.bt-blog-listing{padding-top:40px;padding-bottom:64px}
.bt-posts-grid{display:grid;gap:22px;grid-template-columns:1fr;margin:34px 0 8px}
.bt-posts-grid-3{margin:0}
.bt-post-card{
  background:var(--bt-card);border:1px solid var(--bt-border);
  border-radius:var(--bt-radius);overflow:hidden;box-shadow:var(--bt-shadow);
  display:flex;flex-direction:column;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.bt-post-card:hover{transform:translateY(-5px);box-shadow:var(--bt-shadow-lg);border-color:var(--bt-accent)}
.bt-post-card-media{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--bt-soft)}
.bt-post-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.bt-post-card:hover .bt-post-card-media img{transform:scale(1.06)}
.bt-post-card-fallback{
  display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;background:var(--bt-grad);font-size:3rem;
}
.bt-post-card-fallback span{filter:grayscale(.2);opacity:.9}
.bt-post-card-body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1;align-items:flex-start}
.bt-post-card-title{font-size:1.1rem;font-weight:700;line-height:1.35;margin:0}
.bt-post-card-title-lg{font-size:1.5rem;letter-spacing:-.015em}
.bt-post-card-title a{color:var(--bt-text)}
.bt-post-card-title a:hover{color:var(--bt-accent);text-decoration:none}
.bt-post-card-excerpt{color:var(--bt-muted);font-size:.93rem;line-height:1.6;margin:0;flex:1}
.bt-post-card-meta{
  display:flex;align-items:center;gap:10px;
  font-size:.82rem;color:var(--bt-muted);
}
.bt-post-card-meta time{white-space:nowrap}

/* Featured card */
.bt-post-card-featured{margin-bottom:34px}
.bt-post-card-featured .bt-post-card-media{aspect-ratio:16/9}
.bt-featured-tag{margin-bottom:6px}
.bt-btn-sm{padding:11px 22px;font-size:.92rem;margin-top:6px}

/* --- 15p. Archive header --- */
.bt-archive-head{
  background:var(--bt-card);border-bottom:1px solid var(--bt-border);
  padding:44px 0 34px;transition:background-color .25s ease;
}
.bt-archive-head .bt-crumbs{margin-bottom:14px}
.bt-archive-title{
  font-size:2rem;font-weight:800;letter-spacing:-.025em;margin-bottom:10px;
}
.bt-archive-desc{color:var(--bt-muted);max-width:680px;margin-bottom:8px}
.bt-archive-count{font-size:.88rem;color:var(--bt-muted);margin:0;font-weight:600}

/* --- 15q. Blog breakpoints --- */
@media (min-width:640px){
  .bt-posts-grid{grid-template-columns:repeat(2,1fr)}
  .bt-posts-grid-3{grid-template-columns:repeat(2,1fr)}
  .bt-tools-cta-grid{grid-template-columns:repeat(3,1fr)}
  .bt-post-nav{grid-template-columns:1fr 1fr}
  .bt-post-title{font-size:2.5rem}
  .bt-blog-title{font-size:2.9rem}
}
@media (min-width:1024px){
  .bt-post-layout{grid-template-columns:minmax(0,1fr) 290px;align-items:start}
  .bt-toc{position:sticky;top:94px;max-height:calc(100vh - 120px);overflow-y:auto}
  .bt-posts-grid{grid-template-columns:repeat(3,1fr)}
  .bt-posts-grid-3{grid-template-columns:repeat(3,1fr)}
  .bt-post-card-featured{flex-direction:row;align-items:stretch}
  .bt-post-card-featured .bt-post-card-media{flex:0 0 46%;aspect-ratio:auto;min-height:300px}
  .bt-post-card-featured .bt-post-card-body{padding:34px;justify-content:center}
  .bt-author-box{padding:32px}
}
@media (max-width:1023px){
  .bt-post-sidebar{order:-1}
}
@media (max-width:639px){
  .bt-author-box{flex-direction:column;align-items:flex-start}
  .bt-author-avatar{width:72px;height:72px}
  .bt-tools-cta{padding:28px 24px}
}
