/* VM Hub articles. Load after site.css and, on articles, doc.css.
   Shared font and theme tokens keep the reading pages in the site design. */

.hb-blog-index{padding:clamp(24px,2.6vw,36px) 0 clamp(48px,6vw,80px)}
.hb-blog-intro{margin-bottom:clamp(28px,3.2vw,40px)}
.hb-blog-intro h1{max-width:19ch;margin:0 0 20px;font-size:clamp(34px,4.6vw,60px);
  font-weight:800;line-height:1.06;letter-spacing:-.042em;text-wrap:balance;overflow-wrap:break-word}
.hb-blog-intro .page-lede{max-width:64ch}

/* Cards keep complete titles and descriptions at every screen width. */
.hb-blog-grid,.hb-blog-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;gap:24px 20px}
.hb-blog-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;
  border:1px solid var(--hair);border-radius:20px;background:var(--plate);color:var(--ink)}
.hb-blog-cover{display:block;flex:none;aspect-ratio:40 / 21;overflow:hidden;
  border-bottom:1px solid var(--hair);background:var(--surface)}
.hb-blog-cover picture{display:block;height:100%}
.hb-blog-cover img{display:block;width:100%;height:100%;object-fit:cover}
.hb-blog-card-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:12px;
  min-width:0;padding:20px}
.hb-blog-meta{margin:0;color:var(--muted);font-size:12.5px;line-height:1.55;
  letter-spacing:.01em;overflow-wrap:break-word;font-variant-numeric:tabular-nums}
.hb-blog-meta a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.hb-blog-card h2{max-width:none;margin:0;font-size:20px;font-weight:800;line-height:1.3;
  letter-spacing:-.025em;text-wrap:pretty;overflow-wrap:break-word}
.hb-blog-card h2 a{color:inherit;text-decoration:none}
.hb-blog-description{margin:0;color:var(--muted);font-size:14.5px;line-height:1.6;
  overflow-wrap:break-word;text-wrap:pretty}
.hb-blog-read{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:auto;
  color:var(--accent);font-size:14px;font-weight:700;text-decoration:none}
.hb-blog-read::after{content:"→";font-size:18px;line-height:1}
.hb-blog-card h2 a:hover,.hb-blog-meta a:hover{color:var(--accent)}
.hb-blog-read:hover{text-decoration:underline;text-underline-offset:4px}
.hb-blog-card a:focus-visible{outline:2px solid var(--violet);outline-offset:3px;border-radius:4px}
.hb-blog-cover:focus-visible{outline-offset:-4px;border-radius:18px 18px 0 0}

/* Neighboring cards share their text rows without fixed title heights. */
@supports (grid-template-rows:subgrid){
  .hb-blog-card{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:0}
  .hb-blog-card-body{display:grid;grid-row:span 4;grid-template-rows:subgrid;
    align-items:start;row-gap:12px}
  .hb-blog-card-body>.hb-blog-meta{grid-row:1}
  .hb-blog-card-body>h2{grid-row:2}
  .hb-blog-card-body>.hb-blog-description{grid-row:3}
  .hb-blog-card-body>.hb-blog-read{grid-row:4;align-self:end;margin-top:0}
}

/* The article stays narrow; the recommendations use the regular site width. */
.hb-blog-article{max-width:1240px;margin:0 auto;
  padding:clamp(24px,2.6vw,36px) var(--pad) clamp(48px,6vw,80px)}
.hb-blog-article>article{min-width:0}
.hb-blog-header{max-width:760px;margin:0 auto clamp(24px,2.8vw,36px)}
.hb-blog-crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;
  margin:0 0 20px;color:var(--muted);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.hb-blog-crumbs a{color:inherit;text-decoration:none;text-underline-offset:3px}
.hb-blog-crumbs a:hover{color:var(--accent);text-decoration:underline}
.hb-blog-crumbs a:focus-visible{outline:2px solid var(--violet);outline-offset:3px;border-radius:3px}
.hb-blog-header h1{margin:0 0 20px;font-size:clamp(30px,4vw,52px);font-weight:800;
  line-height:1.12;letter-spacing:-.038em;text-wrap:balance;overflow-wrap:break-word;hyphens:auto}
.hb-blog-header .hb-blog-meta{font-size:13px}
.hb-blog-header .hb-blog-meta>span{display:block}
.hb-blog-copy{width:100%;max-width:70ch;margin:0 auto;font-size:17px;line-height:1.75;
  overflow-wrap:break-word}
.hb-blog-copy>p:first-child{margin-bottom:1.4em;font-size:1.08em;line-height:1.65;color:var(--ink)}
.hb-blog-copy h2,.hb-blog-copy h3{scroll-margin-top:calc(var(--top-h) + 16px)}
.hb-blog-copy h2{margin-top:1.8em}
.hb-blog-copy code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:.9em;overflow-wrap:anywhere}
.hb-blog-copy pre{max-width:100%;overflow-x:auto;margin:22px 0;padding:16px 18px;
  border:1px solid var(--hair);border-radius:14px;background:var(--plate);
  color:var(--ink);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:14px;line-height:1.6;overscroll-behavior-x:contain}
.hb-blog-copy pre code{font-size:inherit;word-break:normal;overflow-wrap:normal}
.hb-blog-copy .art-toc{margin:28px 0}
.hb-blog-copy .art-toc a{padding-top:9px;padding-bottom:9px}
.hb-blog-copy .art-toc li::before{padding-top:9px;padding-bottom:9px}
.hb-blog-copy .case-fig{margin:28px 0;border-radius:18px}
.hb-blog-copy .case-fig figcaption{padding:12px 16px;font-size:13px;line-height:1.55}
.hb-blog-copy .doc-table{max-width:100%;margin:22px 0;overscroll-behavior-x:contain}
.hb-blog-copy .doc-table table{min-width:520px}
.hb-blog-copy .doc-table:focus-visible{outline:2px solid var(--violet);outline-offset:3px}
.hb-blog-copy .faq-item{margin:12px 0;padding:18px 20px}
.hb-blog-copy .faq-item h3{margin:0 0 8px;font-size:17px;line-height:1.4}
.hb-blog-copy .faq-item p:last-child{margin-bottom:0}
.hb-blog-copy .hb-blog-cta{margin:28px 0 0;padding:20px 22px;border:1px solid var(--hair);
  border-left:3px solid var(--violet);border-radius:0 16px 16px 0;
  background:color-mix(in srgb,var(--violet) 7%,var(--plate));font-size:16px;line-height:1.65}
.hb-blog-related{margin-top:clamp(40px,4.6vw,60px);padding-top:clamp(28px,3.2vw,40px);
  border-top:1px solid var(--hair)}
.hb-blog-related>h2{max-width:none;margin:0 0 24px;font-size:clamp(26px,3vw,36px);
  line-height:1.15;letter-spacing:-.03em;text-wrap:balance}
.hb-blog-related .hb-blog-card h2{font-size:18px}

@media (max-width:1080px){
  .hb-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hb-blog-related-grid{gap:16px}
  .hb-blog-related .hb-blog-card-body{padding:16px}
}
@media (max-width:760px){
  .hb-blog-related-grid{grid-template-columns:1fr}
  .hb-blog-related .hb-blog-card-body{padding:20px}
  .hb-blog-related .hb-blog-card h2{font-size:20px}
}
@media (max-width:640px){
  .hb-blog-grid{grid-template-columns:1fr;gap:20px}
  .hb-blog-card-body{padding:18px;gap:10px}
  .hb-blog-intro h1{font-size:clamp(32px,8.5vw,44px)}
  .hb-blog-header h1{font-size:clamp(28px,7.7vw,38px);line-height:1.16}
  .hb-blog-copy{font-size:16px;line-height:1.7}
  .hb-blog-copy .art-toc details{padding-left:16px;padding-right:16px}
  .hb-blog-copy .case-fig{margin:24px 0;border-radius:14px}
  .hb-blog-copy .case-fig figcaption{padding:10px 12px;font-size:12.5px}
  .hb-blog-copy .faq-item,.hb-blog-copy .hb-blog-cta{padding:16px}
}
