/* site-blog: page styles of the 2026-11 redesign (merged into site.css later)
   T6 "Blog" (Figma 85:943): content/blog_hp.php, content/blog_category.php
   T7 "Article" (Figma 85:1243): content/blog_article.php
   Markup helpers: content/_sbh_blog.php. Base blog classes (.sbh-feat, .sbh-pcard, .sbh-art ...) are in site.css Part 2. */

.sbh-blist [hidden],.sbh-bempty[hidden]{display:none!important}
/* bootstrap gives every p margin-bottom:1rem; these blocks space their children with gap */
.sbh-bhero .sbh-lead-l,.sbh-art-head .sbh-lead-l,.sbh-art-side .sbh-side-cta p,.sbh-wrap.sbh-toolband p{margin-bottom:0}
.sbh-art-head .sbh-author{margin-top:6px}
.sbh-vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sbh-flip{transform:rotate(180deg)}

/* ---------- T6 listing hero ---------- */
.sbh-bhero{padding-bottom:40px}
.sbh-bhero .sbh-blog-top{margin-top:34px}
.sbh-bhero-copy{display:flex;flex-direction:column;gap:18px;max-width:640px;min-width:0}
.sbh .sbh-bhero .sbh-ph1{font-size:60px}
.sbh-h1-pg{color:var(--sub)}
.sbh-bhero .sbh-bcats{margin-top:40px}
.sbh-bsearch{flex:none;transition:border-color .15s,box-shadow .15s}
.sbh-bsearch:focus-within{border-color:var(--acc);box-shadow:0 0 0 3px rgba(31,94,255,.14),0 8px 24px rgba(11,27,63,.05)}
.sbh .sbh-bsearch input{-webkit-appearance:none;appearance:none;padding:0;margin:0;box-shadow:none;border-radius:0;font-family:inherit}
.sbh .sbh-bsearch input::placeholder{color:#8F9BB3}
.sbh-bcats a{transition:border-color .15s,background .15s}

/* ---------- T6 lists ---------- */
.sbh-blist{padding:8px 0 96px}
.sbh-blist>.sbh-wrap>.sbh-feat{margin-bottom:40px}
.sbh-feat .sbh-post-title{color:var(--ink)}
.sbh-feat:hover .sbh-post-title{color:var(--acc)}
.sbh-feat .sbh-post-desc{font-size:16px;line-height:25px}
.sbh-bgroup+.sbh-bgroup{margin-top:72px}
.sbh-bgroup-h{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.sbh .sbh-bgroup-h h2{font-family:var(--fj);font-weight:800;font-size:30px;line-height:1.2;letter-spacing:-.02em;color:var(--ink)}
.sbh .sbh-bgroup-h h2 a:hover{color:var(--acc)}
.sbh-bgroup-h .sbh-link{flex:none;padding-bottom:4px}
.sbh-pcard .sbh-post-img img,.sbh-feat .sbh-post-img img{width:100%;height:100%;object-fit:cover}
.sbh-pcard .sbh-post-desc{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.sbh .sbh-pcard h2.sbh-post-title,.sbh .sbh-pcard h3.sbh-post-title{font-size:18px;line-height:25px;font-weight:600;letter-spacing:-.005em}
.sbh-bempty{display:flex;align-items:center;gap:16px;background:var(--alt);border-radius:18px;padding:22px 24px;margin-top:24px}
.sbh-bempty>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sbh-bempty b{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.sbh-bempty>div>span{font-size:14px;color:var(--mut)}
.sbh-pag .is-dis{color:var(--sub)!important;opacity:.55}
.sbh-pag a.is-on{pointer-events:none}

/* "Put it into practice" band */
.sbh-wrap.sbh-toolband{padding:44px 24px}
.sbh .sbh-tb-h{font-family:var(--fi);font-size:20px;line-height:1.3;font-weight:600;color:var(--ink)}
.sbh-toolband>div{flex:1 1 340px;min-width:0}
.sbh-toolband nav{flex:none}
.sbh-toolband nav a{transition:border-color .15s,color .15s}
.sbh-toolband nav a:hover{color:var(--acc)!important}

/* ---------- T7 article ---------- */
.sbh-art-hero{padding-bottom:88px}
.sbh-art-head .sbh-crumbs{justify-content:center}
.sbh-art-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 10px;font-size:13.5px;color:var(--sub)}
.sbh-art-meta a.sbh-cat:hover{background:#DCE6FF}
.sbh-art-head .sbh-lead-l{max-width:720px}
.sbh-author a{color:var(--ink)!important;text-decoration:underline;text-underline-offset:3px}
.sbh-author small{display:block}
.sbh-preview-note{display:inline-flex;align-items:center;gap:8px;background:var(--warnS);color:var(--warnT);border-radius:10px;padding:8px 14px;font-size:14px;line-height:20px;text-align:left}
.sbh-preview-note .sbh-ic{color:var(--warnT)}
.sbh-admin-edit{font-size:13px;color:var(--sub)!important;margin-top:-8px}
.sbh-cover{max-width:1200px;margin:-40px auto 0;aspect-ratio:2/1}
.sbh-art-main{min-width:0}
.sbh-art-main>.sbh-prose{max-width:none}
.sbh-toc{position:relative;scrollbar-width:thin}
.sbh-toc a.is-h3{padding-left:22px;font-size:13.5px}
.sbh-toc-m{display:none;background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:28px}
.sbh-toc-m summary{display:flex;align-items:center;gap:10px;padding:14px 16px;font-size:15px;font-weight:600;color:var(--ink);cursor:pointer;list-style:none}
.sbh-toc-m summary::-webkit-details-marker{display:none}
.sbh-toc-m summary .sbh-ic{color:var(--acc)}
.sbh-toc-m summary .sbh-ic:last-child{margin-left:auto;color:var(--sub);transition:transform .2s}
.sbh-toc-m[open] summary .sbh-ic:last-child{transform:rotate(180deg)}
.sbh-toc-m nav{display:flex;flex-direction:column;padding:0 8px 10px;border-top:1px solid var(--line);max-height:60vh;overflow:auto}
.sbh-toc-m nav a{display:block;padding:9px 10px;font-size:14.5px;line-height:20px;color:var(--mut)!important;border-radius:8px}
.sbh-toc-m nav a.is-h3{padding-left:24px;font-size:14px}
.sbh-toc-m nav a:hover{background:var(--alt);color:var(--ink)!important}
.sbh-side-cta .sbh-btn{gap:8px}
.sbh-share button.is-done{color:var(--ok)!important;border-color:#BFE6CF}
.sbh-bio{display:flex;align-items:flex-start;gap:16px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;margin-top:48px}
.sbh .sbh-bio-h{font-family:var(--fi);font-size:17px;font-weight:600;line-height:1.35;color:var(--ink)}
.sbh-bio p{font-size:15px;line-height:24px;color:var(--mut);margin:6px 0 0!important}
.sbh-related{padding:88px 0}
.sbh .sbh-related .sbh-h2.sbh-j{font-size:36px}
.sbh-related .sbh-pgrid{margin-top:40px}

/* ---------- article body (.sbh-prose) overrides for DB content ---------- */
.sbh-article .sbh-prose p:has(>img:only-child) img,.sbh-article .sbh-prose p>a:only-child>img{display:block;margin:0 auto}
.sbh-article .sbh-prose img{border-radius:14px}
/* tables: Parsedown adds bootstrap's .table classes; undo their borders/stripes */
.sbh-article .sbh-prose .sbh-tscroll{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff;-webkit-overflow-scrolling:touch}
.sbh-article .sbh-prose .sbh-tscroll>table{border:0;border-radius:0;margin:0;width:100%;background:#fff;color:inherit;font-size:15px;line-height:1.5}
.sbh-article .sbh-prose table th,.sbh-article .sbh-prose table td{border:0;border-top:1px solid var(--line);padding:12px 16px;vertical-align:top;background:none;box-shadow:none;color:inherit;text-align:left}
.sbh-article .sbh-prose table th{background:var(--alt);vertical-align:bottom;font-size:12.5px;line-height:1.4;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--mut)}
.sbh-article .sbh-prose table thead th{border-top:0;border-bottom:0}
.sbh-article .sbh-prose table tr:first-child>td,.sbh-article .sbh-prose table tr:first-child>th{border-top:0}
.sbh-article .sbh-prose table thead+tbody tr:first-child>td{border-top:1px solid var(--line)}
.sbh-article .sbh-prose table th strong,.sbh-article .sbh-prose table th b{color:inherit;font-weight:inherit}
.sbh-article .sbh-prose table tbody tr:nth-of-type(odd),.sbh-article .sbh-prose table tbody tr:nth-of-type(even){background:none}
.sbh-article .sbh-prose table td:first-child{color:var(--ink);font-weight:500}
.sbh-article .sbh-prose table p{margin:0!important;font-size:inherit;line-height:inherit}
.sbh-article .sbh-prose table ul,.sbh-article .sbh-prose table ol{padding-left:18px!important;margin:0!important}
.sbh-article .sbh-prose table li{margin:2px 0;font-size:inherit}
/* theme.min.css gives every p font-size:1rem (18.5px here); body copy uses the prose size */
.sbh-article .sbh-prose p{font-size:inherit}
/* theme.min.css makes em white on cyan; site.css drops the cyan, which left em text invisible */
.sbh-article .sbh-prose em,.sbh-article .sbh-prose i{font-style:italic;color:inherit;background:none;padding:0}
/* no top margin on the first block (site.css's :first-child rule loses to the heading margins); a JSON-LD script may come first */
.sbh-article .sbh-prose>:is(h1,h2,h3,h4,h5,h6,p,ul,ol,div):first-child,.sbh-article .sbh-prose>script:first-child+*,.sbh-article .sbh-prose>script:first-child+script+*{margin-top:0!important}
/* blockquote = "key takeaway" box */
.sbh-article .sbh-prose blockquote{position:relative;margin:0;border:0;background:var(--soft);border-radius:14px;padding:16px 20px 16px 54px;color:var(--ink);font-size:16px;line-height:1.65}
.sbh-article .sbh-prose blockquote::before{content:"";position:absolute;left:20px;top:19px;width:20px;height:20px;background:var(--acc);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3C/svg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3C/svg%3E") no-repeat center/contain}
.sbh-article .sbh-prose blockquote p{margin:0;font-size:inherit;line-height:inherit;color:inherit}
.sbh-article .sbh-prose blockquote>*+*{margin-top:10px!important}
/* lists, code, media */
.sbh-article .sbh-prose li>ul,.sbh-article .sbh-prose li>ol{margin-top:6px!important}
.sbh-article .sbh-prose li>p{margin:0}
.sbh-article .sbh-prose li>p+p{margin-top:8px!important}
.sbh-article .sbh-prose pre{white-space:pre;max-width:100%}
.sbh-article .sbh-prose pre code{font-size:13.5px;white-space:inherit;word-wrap:normal}
.sbh-article .sbh-prose code{overflow-wrap:anywhere}
.sbh-article .sbh-prose iframe{display:block;max-width:100%;border:0}
.sbh-article .sbh-prose iframe[src*="youtube"],.sbh-article .sbh-prose iframe[src*="vimeo"]{width:100%;height:auto;aspect-ratio:16/9}
.sbh-article .sbh-prose a{overflow-wrap:anywhere}
/* inline CTA (replaces the old ---ad--- banner) */
.sbh-article .sbh-prose>.sbh-inline-cta{margin:32px 0!important}
.sbh-article .sbh-prose .sbh-inline-cta .sbh-tile{color:var(--acc)}
.sbh-article .sbh-prose .sbh-inline-cta b{color:var(--ink);font-size:16px;line-height:1.4;font-weight:600}
.sbh-article .sbh-prose .sbh-inline-cta div>span{display:block;font-size:14px;line-height:1.5;color:var(--mut);margin-top:2px}
.sbh-article .sbh-prose .sbh-inline-cta .sbh-btn{flex:none;color:#fff!important;text-decoration:none}
.sbh-article .sbh-prose .sbh-inline-cta .sbh-btn:hover{color:#fff!important}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .sbh-toc-m{display:block}
  .sbh-art-side .sbh-toc{display:none}
  .sbh-art-side{width:100%;max-width:760px}
  .sbh-art-main>.sbh-prose{max-width:760px}
  .sbh-blog-top{flex-direction:column;align-items:stretch;gap:24px}
  .sbh-bsearch{width:100%;max-width:520px}
}
@media (max-width:760px){
  .sbh .sbh-bhero .sbh-ph1{font-size:38px}
  .sbh-bhero .sbh-blog-top{margin-top:24px}
  .sbh-bhero .sbh-bcats{margin:28px -24px 0;padding:0 24px 4px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .sbh-bhero .sbh-bcats::-webkit-scrollbar{display:none}
  .sbh-bcats a{flex:none}
  .sbh-blist{padding-bottom:72px}
  .sbh-blist>.sbh-wrap>.sbh-feat{margin-bottom:24px}
  .sbh-feat{gap:16px}
  .sbh-bgroup+.sbh-bgroup{margin-top:56px}
  .sbh-bgroup-h{flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:18px}
  .sbh .sbh-bgroup-h h2{font-size:24px}
  .sbh-bempty{flex-direction:column;align-items:flex-start}
  .sbh-pag{gap:6px}
  .sbh-pag a,.sbh-pag span{min-width:36px;height:36px;padding:0 8px}
  .sbh-pag .is-gap{min-width:20px;padding:0 2px}
  .sbh-wrap.sbh-toolband{padding:36px 24px;flex-direction:column;align-items:flex-start}
  .sbh-toolband>div{flex:none}
  .sbh-toolband nav{flex:initial}
  .sbh-art-hero{padding-bottom:64px}
  .sbh-art-head{gap:14px}
  .sbh-cover{aspect-ratio:870/500;margin-top:-32px}
  .sbh-art{padding:32px 0 64px}
  .sbh-article .sbh-prose h3{font-size:20px}
  .sbh-article .sbh-prose .sbh-tscroll>table{font-size:14px}
  .sbh-article .sbh-prose table th,.sbh-article .sbh-prose table td{padding:10px 12px}
  .sbh-article .sbh-prose .sbh-tscroll>table:has(tr>:nth-child(3)){min-width:520px}
  .sbh-article .sbh-prose .sbh-tscroll>table:has(tr>:nth-child(4)){min-width:640px}
  .sbh-article .sbh-prose blockquote{padding:14px 16px 14px 46px;font-size:15.5px}
  .sbh-article .sbh-prose blockquote::before{left:16px;top:17px}
  .sbh-article .sbh-prose .sbh-inline-cta .sbh-btn{width:100%}
  .sbh-bio{flex-direction:column;padding:20px}
  .sbh-related{padding:64px 0}
  .sbh .sbh-related .sbh-h2.sbh-j{font-size:30px}
  .sbh-related .sbh-pgrid{margin-top:28px}
}

/* a last row of 2 cards fills the row instead of leaving an empty slot (category page 1: newest + 8) */
@media (min-width:1101px){
  .sbh-pgrid.sbh-pgrid-fill{grid-template-columns:repeat(6,minmax(0,1fr))}
  .sbh-pgrid.sbh-pgrid-fill>*{grid-column:span 2}
  .sbh-pgrid.sbh-pgrid-fill>:nth-last-child(2):nth-child(3n+1),.sbh-pgrid.sbh-pgrid-fill>:last-child:nth-child(3n+2){grid-column:span 3}
  .sbh-pgrid.sbh-pgrid-fill>:nth-last-child(2):nth-child(3n+1) .sbh-post-img,.sbh-pgrid.sbh-pgrid-fill>:last-child:nth-child(3n+2) .sbh-post-img{aspect-ratio:368/170}
}

/* =====================================================================
   T7 article, layout B "reading column" (Figma 90:2194), 2026-11-29.
   One left-aligned 760 px column (header, cover, text) + 300 px sidebar from the top.
   Covers are 870x500, so the cover is never wider than 760 px (no upscaling).
   ===================================================================== */
.sbh-artb{position:relative;margin-top:-77px;padding:117px 0 88px;background:
  radial-gradient(900px 520px at 65% -180px,rgba(31,94,255,.12),transparent 70%),
  linear-gradient(#F4F7FF 0,#fff 560px)}
.sbh-artb-grid{display:grid;grid-template-columns:minmax(0,760px) 300px;justify-content:space-between;gap:56px;align-items:start}
.sbh-artb .sbh-art-head{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:16px;max-width:none;margin:0}
.sbh-artb .sbh-art-head .sbh-crumbs{justify-content:flex-start}
.sbh-artb .sbh-art-meta{justify-content:flex-start;margin-top:6px}
.sbh-artb .sbh-art-h1{font-size:44px;line-height:1.14;letter-spacing:-.03em}
.sbh-artb .sbh-art-head .sbh-lead-l{max-width:720px;font-size:18px;line-height:28px}
.sbh-byline{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;width:100%;padding:16px 0;margin-top:8px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sbh-byline .sbh-author{margin:0}
.sbh-byline .sbh-author .sbh-tile{width:40px;height:40px}
.sbh-byline .sbh-author b{font-size:14.5px}
.sbh-byline .sbh-author small{font-size:13px}
.sbh-byline .sbh-share a,.sbh-byline .sbh-share button{width:34px;height:34px}
.sbh-artb .sbh-cover{max-width:760px;width:100%;margin:32px 0 0;aspect-ratio:870/500;border-radius:18px;overflow:hidden;background:#DCE3EE;box-shadow:0 1px 2px rgba(11,27,63,.04)}
.sbh-artb .sbh-cover img{width:100%;height:100%;object-fit:cover;display:block}
.sbh-artb .sbh-art-main{min-width:0}
.sbh-artb .sbh-art-main>.sbh-prose{max-width:none;margin-top:40px}
/* the mobile TOC sits between cover and text; it is display:none on desktop, so the text keeps its own top margin */
.sbh-artb .sbh-toc-m{margin:28px 0 0}
.sbh-artb .sbh-art-side{position:sticky;top:96px;align-self:start;display:flex;flex-direction:column;gap:16px;margin-top:56px}
.sbh-artb .sbh-toc{max-height:calc(100vh - 380px)}
@media (max-width:1100px){
  .sbh-artb-grid{grid-template-columns:minmax(0,1fr);gap:40px}
  .sbh-artb .sbh-art-main{max-width:760px}
  .sbh-artb .sbh-art-side{position:static;margin-top:0;max-width:760px}
  .sbh-artb .sbh-art-side .sbh-toc{display:none}
}
@media (max-width:760px){
  .sbh-artb{padding:100px 0 64px}
  .sbh-artb .sbh-art-h1{font-size:30px}
  .sbh-artb .sbh-art-head .sbh-lead-l{font-size:16.5px;line-height:26px}
  .sbh-artb .sbh-cover{margin-top:24px;border-radius:14px}
  .sbh-artb .sbh-art-main>.sbh-prose{margin-top:28px}
}
