/* Blog hub (/blog/). Builds on site.css: the rails sections (.rs .rw), the homepage blog cards (.gbento .gb) and the type scale.
   Header: centred heading on the hero template (line 1 slightly longer, text narrower), then topic jump links.
   Rows: one per topic, row heading left, count, hub link right (zigzag-free: every row is the same template). */

.bh{background:#fff}
.bh-head{position:relative;padding:184px 0 72px;background:#fff}
.bh-intro{max-width:820px;margin:0 auto;text-align:center}
.bh-intro h1{margin:0;font:600 clamp(40px,4.6vw,64px)/1.05 var(--serif);letter-spacing:-.025em;color:var(--ink);text-wrap:balance}
.bh-intro h1 .l{display:block}
.bh-intro p{margin:20px auto 0;max-width:620px;font-size:19px;line-height:1.6;color:var(--muted)}

.bh-jump{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:980px;margin:40px auto 0}
.bh-jump a{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid rgba(16,20,24,.14);border-radius:999px;background:#fff;font:700 14px/1 var(--sans);color:var(--ink);text-decoration:none;transition:border-color .15s ease,background-color .15s ease}
.bh-jump a i{font:500 11px/1 var(--mono);font-style:normal;letter-spacing:.06em;color:#1A66C2}
.bh-jump a em{font:500 11px/1 var(--mono);font-style:normal;color:var(--muted)}
.bh-jump a:hover,.bh-jump a:focus-visible{border-color:#1A66C2;background:#F3F8FE}
.bh-jump a:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

.bh-sec{padding-block:72px!important;scroll-margin-top:84px}
.bh-sec .rw::before,.bh-sec .rw::after{top:-72px!important;bottom:-72px!important}
.bh-rowh{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px;margin-bottom:28px;padding:0 20px}
.bh-rowh h2{display:flex;align-items:baseline;gap:14px;margin:0;font:600 clamp(28px,2.6vw,36px)/1.1 var(--serif);letter-spacing:-.015em;color:var(--ink)}
.bh-brg{font:500 12px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#1A66C2;white-space:nowrap}
.bh-count{font:500 12px/1 var(--mono);color:var(--muted)}
.bh-more{margin-left:auto;font:700 15px var(--sans);color:#1A66C2;text-decoration:none;white-space:nowrap}
.bh-more:hover{color:var(--ink)}
.bh-more:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:4px}
.bh .gbento{padding:0 20px}
@media (max-width:1180px) and (min-width:701px){.bh .gbento{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Archive pages (page 2 and on): smaller header, newer/older buttons. */
.bh-head--sub{padding-bottom:40px}
.bh-head--sub .bh-intro h1{font-size:clamp(36px,3.6vw,52px)}
.bh-pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin-top:56px;padding:0 20px}
.bh-pg-prev,.bh-pg-next{font:700 15px var(--sans);color:#1A66C2;text-decoration:none;white-space:nowrap}
.bh-pg-next{justify-self:end}
.bh-pg-prev:hover,.bh-pg-next:hover{color:var(--ink)}
/* Arrow links nudge their arrow on hover, like every .btn and .more on the site (0.5.0: "Browse all", "Explore",
   "All [topic] articles" and Next had no motion). */
.bh-more .arr,.bh-pg-prev .arr,.bh-pg-next .arr{display:inline-block;transition:transform .15s ease}
.bh-more:hover .arr,.bh-pg-next:hover .arr{transform:translateX(3px)}
.bh-pg-prev:hover .arr{transform:translateX(-3px)}
@media (prefers-reduced-motion:reduce){.bh-more:hover .arr,.bh-pg-prev:hover .arr,.bh-pg-next:hover .arr{transform:none}}
.bh-pg-nums{display:flex;gap:6px;list-style:none;margin:0;padding:0}
.bh-pg-nums a,.bh-pg-nums span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 6px;border-radius:999px;font:700 15px/1 var(--sans);color:var(--ink);text-decoration:none;font-variant-numeric:tabular-nums}
.bh-pg-nums a:hover{background:#EEF5FD;color:#1A66C2}
.bh-pg-nums span[aria-current]{background:#1A66C2;color:#fff}
.bh-pager a:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:8px}
@media (max-width:900px){
  .bh-head{padding:140px 0 56px}
}
@media (max-width:700px){
  .bh-intro h1 .l{display:inline}
  .bh-intro,.bh-jump,.bh-rowh,.bh .gbento{padding-left:0;padding-right:0}
  .bh-jump{justify-content:flex-start}
  .bh-more{margin-left:0;width:100%}
  .bh-sec{padding-block:56px!important}
  .bh-pager{grid-template-columns:1fr 1fr;padding:0}
  .bh-pg-nums{grid-column:1/-1;grid-row:1;justify-content:center}
}

/* Rows with fewer than 4 articles end with one tile that points to the topic hub, so the row never looks empty. */
.bh-fill{display:flex;flex-direction:column;justify-content:flex-end;gap:10px;min-height:260px;padding:24px;border:1px dashed #B9D2F0;border-radius:20px;background:#F6FAFE;color:var(--ink);text-decoration:none;transition:border-color .2s ease,background-color .2s ease}
.bh-fill b{font:600 20px/1.3 var(--serif);letter-spacing:-.01em}
.bh-fill>span:not(.bh-brg){font-size:15px;line-height:1.5;color:var(--muted)}
.bh-fill em{margin-top:6px;font:700 15px var(--sans);font-style:normal;color:#1A66C2}
.bh-fill .bh-brg{margin-bottom:auto}
.bh-fill:hover,.bh-fill:focus-visible{border-color:#1A66C2;background:#EEF5FD}
.bh-fill:hover .arr{transform:translateX(3px)}
.bh-fill:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* Section CTA under a card grid: centred, same spacing as the homepage blog button (#guides .gcta). */
.bh .gcta{display:flex;justify-content:center;margin-top:40px}

/* Rows of 3 (v10): topic rows, More articles and the archive. Latest keeps the homepage bento. */
.bh .gbento.bh-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
@media (max-width:1180px) and (min-width:701px){.bh .gbento.bh-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:700px){.bh .gbento.bh-row{grid-template-columns:minmax(0,1fr)!important}}


/* v20 pager: the same hairline pill language as the topic jump links. Page numbers in mono (01, 02) like the
   bearings; the current page is a blue ring on a light tint, not a solid fill. Previous/Next stay in place at the
   ends (faded) so the row keeps its balance. */
.bh-pg-prev,.bh-pg-next{display:inline-flex;align-items:center;gap:8px;justify-self:start;padding:11px 18px;border:1px solid rgba(16,20,24,.14);border-radius:999px;background:#fff;font:700 14px/1 var(--sans);color:var(--ink);transition:border-color .15s ease,background-color .15s ease}
.bh-pg-next{justify-self:end}
a.bh-pg-prev:hover,a.bh-pg-next:hover{border-color:#1A66C2;background:#F3F8FE;color:var(--ink)}
.bh-pg-prev.is-off,.bh-pg-next.is-off{opacity:.38}
.bh-pg-nums{gap:8px}
.bh-pg-nums a,.bh-pg-nums span{min-width:44px;height:44px;border:1px solid transparent;font:500 13px/1 var(--mono);letter-spacing:.06em;color:var(--muted);transition:border-color .15s ease,background-color .15s ease,color .15s ease}
.bh-pg-nums a:hover{border-color:rgba(16,20,24,.14);background:#fff;color:var(--ink)}
.bh-pg-nums span[aria-current]{border-color:#1A66C2;background:#F3F8FE;color:#1A66C2}

/* v21 topic grid: boxed between the rails. "All topics" (current page, blue) spans both rows on the left; the
   topics fill two rows in compass order. Hover = the same blue as the current cell. Rule lines above (this
   section) and below (the next section) close the box; blank cells keep the hairlines continuous. */
.bh-head{padding-bottom:88px}
.bh-topics{padding-block:0!important}
.bh-topics .rw::before,.bh-topics .rw::after{top:0!important;bottom:0!important}
.bh-tgrid{display:grid;grid-template-columns:minmax(220px,1.15fr) repeat(var(--n),minmax(0,1fr));gap:1px;margin:0;padding:0;list-style:none;background:var(--rl,var(--rail));border-inline:1px solid var(--rl,var(--rail))}
.bh-tgrid li{display:flex;background:#fff}
.bh-tgrid .bh-tall{grid-row:span 2}
.bh-tgrid a{display:flex;flex-direction:column;justify-content:center;gap:8px;width:100%;min-height:76px;padding:16px 24px;font:700 16px/1.2 var(--sans);color:var(--ink);text-decoration:none;transition:background-color .15s ease,color .15s ease}
.bh-tgrid a i{font:500 11px/1 var(--mono);font-style:normal;letter-spacing:.1em;text-transform:uppercase;color:#1A66C2;transition:color .15s ease}
.bh-tgrid .bh-tall a{justify-content:flex-end;padding:24px;font:600 24px/1.1 var(--serif);letter-spacing:-.01em}
.bh-tgrid a:hover,.bh-tgrid a:focus-visible,.bh-tgrid a[aria-current]{background:#1A66C2;color:#fff}
.bh-tgrid a:hover i,.bh-tgrid a:focus-visible i,.bh-tgrid a[aria-current] i{color:rgba(255,255,255,.72)}
.bh-tgrid a:focus-visible{outline:2px solid var(--ink);outline-offset:-4px}
@media (max-width:1180px){.bh-tgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.bh-tgrid .bh-tall{grid-row:auto;grid-column:1/-1}.bh-tgrid .bh-tall a{min-height:76px;padding:16px 24px}}
@media (max-width:700px){.bh-topics .wrap{padding-inline:0}.bh-tgrid{border-inline:0}.bh-tgrid a{padding:14px 20px;font-size:15px}}
/* Grid edges sit on the rails (the wrap's 20 px padding is outside the content box). */
@media (min-width:701px){.bh-tgrid{margin-inline:-20px;border-inline:0}}
@media (min-width:701px) and (max-width:1330px){.bh-tgrid{border-inline:1px solid var(--rl,var(--rail))}}
@media (min-width:701px) and (max-width:1180px){.bh-tgrid{grid-template-columns:repeat(var(--n),minmax(0,1fr))}}

/* v22: the topic pills, boxed between the rails (rule above and below, rails left and right), left-aligned.
   "All topics" is first and blue (current page); hover turns any pill the same blue. */
.bh-pills{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:28px 20px;list-style:none}
.bh-pills a{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid rgba(16,20,24,.14);border-radius:999px;background:#fff;font:700 14px/1 var(--sans);color:var(--ink);text-decoration:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.bh-pills a i{font:500 11px/1 var(--mono);font-style:normal;letter-spacing:.06em;color:#1A66C2;transition:color .15s ease}
.bh-pills a:hover,.bh-pills a:focus-visible,.bh-pills a[aria-current]{border-color:#1A66C2;background:#1A66C2;color:#fff}
.bh-pills a:hover i,.bh-pills a:focus-visible i{color:rgba(255,255,255,.75)}
.bh-pills a:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
@media (max-width:1330px){.bh-topics .wrap{border-inline:1px solid var(--rl,var(--rail))}}
@media (max-width:700px){.bh-topics .wrap{padding-inline:0;border-inline:0}.bh-pills{padding:20px 0;gap:8px}}
/* v23: one line. No bearing letters in the pills (each section heading still carries its bearing), tighter
   pills. When the row is wider than the screen it scrolls sideways (no scrollbar, a fade at the right edge). */
.bh-pills{flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-padding-inline:20px}
.bh-pills::-webkit-scrollbar{display:none}
.bh-pills li{flex:0 0 auto}
.bh-pills a{padding:10px 12px;white-space:nowrap}
.bh-pills.is-overflow{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent)}
.bh-pills.is-overflow.at-end{-webkit-mask-image:none;mask-image:none}
@media (max-width:700px){.bh-pills{margin-inline:0;padding-inline:20px}}
/* v24: pill hover and the current pill (All topics) use the pager style: blue ring, light blue tint, blue text. */
.bh-pills a:hover,.bh-pills a:focus-visible,.bh-pills a[aria-current]{border-color:#1A66C2;background:#F3F8FE;color:#1A66C2}
/* v25: pills centred in the band. Auto margins (not justify-content) so a row that scrolls still starts at "All topics". */
.bh-pills li:first-child{margin-left:auto}
.bh-pills li:last-child{margin-right:auto}

/* v27 topic archives: the bearing above the H1. */
.bh-eyebrow{display:block;margin-bottom:16px;font:500 12px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#1A66C2}
/* v29: the hub headline stays on two lines (one per .l span) from tablet width up. */
@media (min-width:701px){.bh-intro{max-width:1040px}.bh-intro h1 .l{white-space:nowrap}.bh-intro p{max-width:680px}}

/* 0.4.0 statistics hub (/statistics/): the blog template in Benchmark green. */
.bh--st .bh-brg,.bh--st .bh-eyebrow,.bh--st .bh-more,.bh--st .bh-fill em{color:#0A7A52}
.bh--st .bh-pills a:hover,.bh--st .bh-pills a:focus-visible,.bh--st .bh-pills a[aria-current]{border-color:#0A7A52;background:#EFFAF4;color:#0A7A52}
.bh--st .bh-pg-nums span[aria-current]{border-color:#0A7A52;background:#EFFAF4;color:#0A7A52}
.bh--st a.bh-pg-prev:hover,.bh--st a.bh-pg-next:hover{border-color:#0A7A52;background:#EFFAF4}
.bh--st .bh-fill{border-color:#A9DCC3;background:#F3FBF7}
.bh--st .bh-fill:hover,.bh--st .bh-fill:focus-visible{border-color:#0A7A52;background:#E8F7EF}

/* Screens audit (0.4.0): the row links ("Browse all articles", "Explore B2B Sales") get a 44 px tall tap area
   without moving the layout. */
.bh-more{display:inline-block;padding-block:12px;margin-block:-12px}
