/* Article-only layout corrections; preserve existing artwork and typography. */
.blog-main .article-cover{
 width:100%;aspect-ratio:auto;max-height:none;overflow:hidden;
 background:transparent;border-radius:5px;
}
.blog-main .article-cover img{
 width:100%;height:auto;max-height:none;object-fit:contain;
}
.blog-main .article-body :is(th,td){vertical-align:top}
.blog-main .article-body :is(th,td)>:last-child{margin-bottom:0}
/* Match the sticky header once, avoiding stacked anchor offsets. */
html:has(.blog-main .article-body){scroll-padding-top:98px}
.blog-main .article-body h2{scroll-margin-top:24px}
@media(max-width:1023px){html:has(.blog-main .article-body){scroll-padding-top:72px}}

/* Share the image, metadata, title, excerpt and link rows between adjacent cards. */
@supports(grid-template-rows:subgrid){
 @media(min-width:721px){
  .blog-main .article-related .blog-grid{row-gap:0}
  .blog-main .article-related .blog-card{
   display:grid;grid-template-rows:subgrid;grid-row:span 5;row-gap:0;
  }
  .blog-main .article-related .blog-card>*{align-self:start}
  .blog-main .article-related .blog-read{justify-self:start}
 }
 @media(min-width:721px) and (max-width:1000px){
  .blog-main .article-related .blog-card:nth-child(n+3){margin-top:3rem}
 }
}
