/* =============================================================
   Blog-specific styles. Layered on top of /service-page.css, which
   supplies the palette, typography, .wrap, .topbar, .lang-toggle,
   .eyebrow, h1, .lede and footer.
   ============================================================= */

/* ---- Category pills ---------------------------------------- */
.b-pills{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 2.5rem}
.b-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .9rem;border:1px solid var(--border);
  border-radius:100px;color:var(--muted);text-decoration:none;font-size:.78rem;transition:border-color .2s,color .2s}
.b-pill:hover{border-color:var(--accent);color:var(--accent)}
.b-pill.active{background:rgba(0,245,195,.08);border-color:rgba(0,245,195,.35);color:var(--accent)}
.b-pill span{color:var(--muted);font-size:.7rem}
.b-pill.active span{color:var(--accent);opacity:.7}

/* ---- Index grid -------------------------------------------- */
.b-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.4rem;margin-bottom:3rem}
.b-card{background:var(--surface2);border:1px solid var(--border);border-radius:4px;overflow:hidden;
  display:flex;flex-direction:column;transition:border-color .2s,transform .2s}
.b-card:hover{border-color:rgba(0,245,195,.35);transform:translateY(-2px)}
.b-cover{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:var(--surface)}
.b-card-body{padding:1.4rem;display:flex;flex-direction:column;flex:1}
.b-card h2{font-family:var(--font-d);font-size:1.05rem;font-weight:700;line-height:1.35;letter-spacing:-.01em;margin:.2rem 0 .6rem}
.b-card h2 a{color:var(--text);text-decoration:none}
.b-card h2 a:hover{color:var(--accent)}
.b-card p{color:var(--muted);font-size:.86rem;line-height:1.65;flex:1}
.b-more{display:inline-block;margin-top:1rem;color:var(--accent);font-size:.8rem;font-weight:600;text-decoration:none}

/* ---- Meta line --------------------------------------------- */
.b-meta{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;font-size:.72rem;color:var(--muted);
  text-transform:uppercase;letter-spacing:.08em}
.b-cat{color:var(--accent);text-decoration:none;font-weight:600}
.b-cat:hover{text-decoration:underline}
.b-author{margin-left:auto}
[dir=rtl] .b-author{margin-left:0;margin-right:auto}

/* ---- Single post ------------------------------------------- */
.b-post{max-width:760px}
.b-crumbs{font-size:.78rem;color:var(--muted);margin-bottom:1.6rem}
.b-crumbs a{color:var(--muted);text-decoration:none}
.b-crumbs a:hover{color:var(--accent)}
.b-post h1{margin:.6rem 0 1.4rem}
.b-hero{width:100%;border-radius:4px;margin-bottom:2rem;display:block}

/* Article body. Generous measure and spacing — this is the part people read. */
.b-body{font-size:1.02rem;line-height:1.8;color:#d6d6e2}
.b-body h2{font-family:var(--font-d);font-size:1.5rem;font-weight:800;letter-spacing:-.02em;margin:2.6rem 0 .9rem;color:var(--text)}
.b-body h3{font-family:var(--font-d);font-size:1.18rem;font-weight:700;margin:2rem 0 .7rem;color:var(--text)}
.b-body h4{font-family:var(--font-d);font-size:1rem;font-weight:700;margin:1.6rem 0 .5rem;color:var(--text)}
.b-body p{margin-bottom:1.3rem}
.b-body ul,.b-body ol{margin:0 0 1.3rem 1.4rem}
[dir=rtl] .b-body ul,[dir=rtl] .b-body ol{margin:0 1.4rem 1.3rem 0}
.b-body li{margin-bottom:.5rem}
.b-body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.b-body strong{color:var(--text)}
.b-body blockquote{border-left:3px solid var(--accent);padding:.2rem 0 .2rem 1.2rem;margin:1.8rem 0;color:var(--muted);font-style:italic}
[dir=rtl] .b-body blockquote{border-left:none;border-right:3px solid var(--accent);padding:.2rem 1.2rem .2rem 0}
.b-body code{background:var(--surface2);border:1px solid var(--border);border-radius:3px;padding:.12rem .4rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.86em;color:var(--accent)}
.b-body pre{background:var(--surface2);border:1px solid var(--border);border-radius:4px;padding:1.1rem;
  overflow-x:auto;margin:0 0 1.5rem;direction:ltr;text-align:left}
.b-body pre code{background:none;border:none;padding:0;color:#c9c9d8}
.b-body img{max-width:100%;height:auto;border-radius:4px;margin:1.5rem 0}
.b-body hr{border:none;border-top:1px solid var(--border);margin:2.4rem 0}
.b-body table{width:100%;border-collapse:collapse;margin:0 0 1.5rem;font-size:.9rem;display:block;overflow-x:auto}
.b-body th,.b-body td{border:1px solid var(--border);padding:.6rem .8rem;text-align:left}
.b-body th{background:var(--surface2);font-weight:600}

/* ---- Post footer CTA --------------------------------------- */
.b-cta{margin-top:3.5rem;padding:2rem;background:var(--surface2);border:1px solid var(--border);
  border-radius:4px;text-align:center}
.b-cta p{font-size:1.05rem;font-weight:600;margin-bottom:1.1rem}
.b-btn{display:inline-block;background:var(--accent);color:#04040a;padding:.8rem 1.7rem;border-radius:2px;
  text-decoration:none;font-family:var(--font-d);font-weight:700;font-size:.85rem}
.b-btn:hover{opacity:.88}

/* ---- Pager / empty ----------------------------------------- */
.b-pager{display:flex;align-items:center;justify-content:center;gap:1.4rem;color:var(--muted);font-size:.82rem;margin-bottom:2rem}
.b-pager a{color:var(--accent);text-decoration:none}
.b-empty{color:var(--muted);padding:3rem 0;text-align:center}

@media(max-width:640px){
  .b-grid{grid-template-columns:1fr}
  .b-body{font-size:.98rem}
  .b-author{margin-left:0}
}
