/* Blog hub (knowledge/blogs/resources.html), 31 Oct 2026. Same family as blog layout B (blog-b.css): the grey title
   panel, Geist, uppercase labels, hairline rules, one accent. Loaded after site.css and nav.css; uses their variables only.
   Built by lx_blog_hub.py. Without JS every post is listed and the topic chips (radio buttons) filter through :has()
   (rules inline in the page); the script adds search, sort and "Show more". */

.hb [hidden]{display:none!important}
.hb-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hb-wrap{max-width:1180px;margin:0 auto;padding-inline:24px}
.hb section{padding-block:0}
.hb-label{font:600 12px/1.2 Geist,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--slate)}
.hb-h2{font-size:clamp(26px,2.6vw,34px);letter-spacing:-.025em}

/* title panel */
.hb-hero{margin:24px max(24px,calc((100% - 1132px) / 2)) 0;background:var(--haze);border-radius:28px;padding:clamp(28px,3.6vw,52px) clamp(28px,4.4vw,64px);
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:24px 56px}
.hb-hero-side{padding-bottom:8px}
.hb-hero-side .hb-count{margin-top:0}
.hb-hero .crumbs{padding-top:0}
.hb h1{font-size:clamp(36px,4.6vw,64px);line-height:1.04;letter-spacing:-.03em;margin-top:16px;max-width:16em;text-wrap:balance}
.hb-count{display:flex;flex-wrap:wrap;margin-top:22px;font-size:15px;color:var(--slate)}
.hb-count > span + span::before{content:"\00b7";margin:0 10px;color:#b8b8bf}
.hb-jump{display:flex;flex-wrap:wrap;gap:6px 24px;margin-top:10px;font-size:15px}
.hb-jump a{font-weight:600;color:var(--ink);text-decoration:underline;text-decoration-color:var(--ember);text-decoration-thickness:2px;text-underline-offset:5px}
.hb-jump a:hover{color:var(--ember)}

/* shared bits */
.hb-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 0;font-size:13.5px;line-height:1.45;color:var(--slate)}
.hb-meta > * + *::before,.hb-when > * + *::before{content:"\00b7";margin:0 8px;color:#b8b8bf}
.hb-when{display:inline-flex;flex-wrap:wrap}
.hb-topic{font-weight:600;color:var(--ember)}
.hb h3{font-size:clamp(19px,1.6vw,22px);line-height:1.25;letter-spacing:-.015em;margin-top:8px;text-wrap:pretty}
.hb h3 a{text-decoration:none;color:var(--ink)}
.hb h3 a::after{content:"";position:absolute;inset:0;z-index:1}
.hb h3 a:hover{color:var(--ember)}
.hb h3 a:focus-visible{outline:none}
.hb-row:focus-within,.hb-top:focus-within{outline:2px solid var(--ember);outline-offset:6px;border-radius:6px}
.hb-ex{font-size:16px;line-height:1.55;color:#4a4a50;margin-top:8px;max-width:44em;text-wrap:pretty}
.hb-row-pic,.hb-top-pic{display:block;background:#fff;border:1px solid #ececf0;overflow:hidden}
.hb-row-pic img,.hb-top-pic img{width:100%;height:100%;object-fit:cover}

/* most visited: the top posts by Search Console clicks, numbered */
.hb-feat{margin-top:clamp(44px,4.6vw,64px)}
.hb-tops{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:28px;margin-top:20px;padding-top:24px;border-top:1px solid var(--ink)}
.hb-top{position:relative;display:flex;flex-direction:column}
.hb-top-pic{aspect-ratio:16/10;border-radius:12px}
.hb-top-meta{display:flex;align-items:baseline;gap:12px;margin-top:16px;font-size:13.5px;color:var(--slate)}
.hb-top.nopic .hb-top-meta{margin-top:0}
.hb-num{font:600 15px/1 Geist,sans-serif;letter-spacing:.04em;color:var(--ember);font-variant-numeric:tabular-nums}
.hb-top h3{font-size:17.5px;line-height:1.3;margin-top:8px}

/* all posts: topics rail + list */
.hb-all{margin-top:clamp(64px,7vw,104px)}
.hb-browse{display:grid;grid-template-columns:272px minmax(0,1fr);gap:48px;align-items:start;margin-top:20px;padding-top:24px;border-top:1px solid var(--ink)}
.hb-topics{min-width:0;border:0;position:sticky;top:96px;display:flex;flex-direction:column}
.hb-topics legend{float:left;width:100%;margin-bottom:12px}
.hb-topics input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.hb-topics label{display:flex;justify-content:space-between;gap:12px;padding:7px 0 7px 12px;border-left:2px solid #e6e6ea;font-size:15px;line-height:1.35;color:var(--slate);cursor:pointer;transition:color .2s,border-color .2s}
.hb-topics label span{font-size:13px;color:#8a8a90;font-variant-numeric:tabular-nums}
.hb-topics label:hover{color:var(--ink);border-left-color:#b8b8bf}
.hb-topics input:checked + label{color:var(--ink);font-weight:600;border-left-color:var(--ember)}
.hb-topics input:focus-visible + label{outline:2px solid var(--ember);outline-offset:2px}
.hb-main{min-width:0}
.hb-bar{display:flex;align-items:center;gap:20px}
.hb-search{flex:1 1 auto;min-width:0}
.hb-search input{width:100%;font:400 16px/1.2 Geist,sans-serif;color:var(--ink);background:#fff;border:1px solid #c9c9cf;border-radius:999px;padding:12px 18px 12px 44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235e5e63' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:16px 50%}
.hb-search input:focus{outline:2px solid var(--ember);outline-offset:2px;border-color:transparent}
.hb-sort{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--slate);flex:none}
.hb-sort select{font:500 15px/1.2 Geist,sans-serif;color:var(--ink);background:#fff;border:1px solid #c9c9cf;border-radius:10px;padding:9px 10px}
.hb-status{display:flex;align-items:center;gap:14px;margin-top:18px;padding-bottom:14px;border-bottom:1px solid #dcdce1;font-size:15px;color:var(--slate)}
.hb-bar[hidden] + .hb-status{margin-top:0}
.hb-clear{font:600 14px/1 Geist,sans-serif;color:var(--ink);background:none;border:0;padding:4px 0;cursor:pointer;text-decoration:underline;text-decoration-color:var(--ember);text-decoration-thickness:2px;text-underline-offset:4px}
.hb-list{list-style:none}
.hb-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 196px;gap:36px;align-items:start;padding:26px 0;border-bottom:1px solid #e6e6ea}
.hb-row.nopic{grid-template-columns:minmax(0,1fr)}
.hb-row-pic{aspect-ratio:16/10;border-radius:12px}
.hb-more-btn{text-align:center;margin-top:36px}
.hb-more-btn .btn{border:0;cursor:pointer;font-family:inherit}

/* case studies and eBooks */
.hb-more{margin-top:clamp(64px,7vw,104px);margin-bottom:clamp(64px,7vw,104px)}
.hb-more-cols{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,4vw,56px);margin-top:20px;padding-top:24px;border-top:1px solid var(--ink)}
.hb-more ul{list-style:none;margin-top:10px}
.hb-more li a{display:block;padding:12px 0;border-bottom:1px solid #e6e6ea;font-size:17px;line-height:1.35;font-weight:500;text-decoration:none;color:var(--ink)}
.hb-more li a:hover{color:var(--ember)}

@media (max-width:1100px){
  .hb-tops{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .hb-browse{grid-template-columns:minmax(0,1fr);gap:20px;border-top:0;padding-top:0}
  .hb-topics{position:static;flex-direction:row;flex-wrap:wrap;gap:8px}
  .hb-topics legend{margin-bottom:4px}
  .hb-topics label{border:1px solid #d2d2d7;border-radius:999px;padding:7px 13px;white-space:nowrap;background:#fff;gap:7px;color:var(--ink)}
  .hb-topics label:hover{border-color:var(--ink)}
  .hb-topics input:checked + label{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:500}
  .hb-topics input:checked + label span{color:#c9c9cf}
  .hb-row{grid-template-columns:minmax(0,1fr) 160px;gap:24px}
}
@media (max-width:640px){
  .hb-hero{margin-inline:16px;border-radius:22px;padding:26px 22px 28px}
  .hb-wrap{padding-inline:20px}
  .hb-tops{grid-template-columns:minmax(0,1fr);gap:0;padding-top:8px}
  .hb-hero{grid-template-columns:minmax(0,1fr)}
  .hb-top{display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:0 16px;align-items:start;padding:16px 0;border-bottom:1px solid #e6e6ea}
  .hb-top:last-child{border-bottom:0}
  .hb-top-pic{grid-column:2;grid-row:1;aspect-ratio:1;border-radius:10px}
  .hb-top-tx{grid-column:1;grid-row:1}
  .hb-top.nopic{grid-template-columns:minmax(0,1fr)}
  .hb-top-meta{margin-top:0}
  .hb-top h3{font-size:17px;margin-top:6px}
  .hb-topics{flex-wrap:nowrap;overflow-x:auto;margin-inline:-20px;padding:0 20px 6px;scrollbar-width:none}
  .hb-topics::-webkit-scrollbar{display:none}
  .hb-topics legend{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .hb-bar{gap:12px}
  .hb-sort label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .hb-row{grid-template-columns:minmax(0,1fr) 84px;gap:16px;padding:22px 0}
  .hb-row-pic{aspect-ratio:1;border-radius:10px}
  .hb-row .hb-topic{display:block;width:100%}
  .hb-row .hb-meta > .hb-when::before,.hb-row .hb-when > * + *::before{content:none}
  .hb-row .hb-when{column-gap:14px}
  .hb-row .hb-ex{font-size:15px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .hb-more-cols{grid-template-columns:minmax(0,1fr)}
}
