/* Kowal articles use Editorial's shared article layout and typography. */
#main header.main:has(~ .posts) > .image.main { display:none; }
.posts .image img { width:100%; height:auto; aspect-ratio:13 / 8; object-fit:cover; }
.posts article > h2, .posts article > h3 { line-height:1.4; }

/* Long article titles must not overlap the breadcrumb or overflow on phones. */
body.kowal-guide #breadcrumbs { height:auto; min-height:0; line-height:1.6; white-space:normal; margin-bottom:1.8em; padding-bottom:.6em; }
body.kowal-guide #main article > header h1 { overflow-wrap:anywhere; }

/* Use the whole article column and preserve each cover's original proportions. */
body.kowal-guide #main .image.main img { width:100%; height:auto; }

/* Wide code and tables scroll within the article rather than widening the page. */
body.kowal-guide #main .table-wrapper { width:100%; overflow-x:auto; }
body.kowal-guide #main pre { max-width:100%; overflow-x:auto; }
@media(max-width:736px) {
  body.kowal-guide #breadcrumbs > span:last-child { display:none; }
  body.kowal-guide #breadcrumbs > span:nth-last-child(2) i { display:none; }
  body.kowal-guide #main table { min-width:540px; }
}
