/* Structural exceptions for the article template, shared with Gutenberg. */
:where(.hj-article){--hj-article-gutter:24px;--hj-article-wide:var(--wp--style--global--wide-size,1100px);--hj-hero-wide:1340px;box-sizing:border-box;width:100%;padding-block:44px 64px}
.hj-article.hj-note{max-width:none;width:100%}
:where(.hj-article-lead,.hj-article-columns,.hj-article-explore,.hj-article-comments){box-sizing:border-box;width:min(var(--hj-article-wide),calc(100% - 2 * var(--hj-article-gutter)));margin-inline:auto}
:where(.hj-article-lead){max-width:900px}
:where(.hj-article-lead .wp-block-post-terms,.hj-article-lead .wp-block-post-title,.hj-article-lead .wp-block-post-excerpt){margin-block-start:0;margin-block-end:0}
:where(.hj-article-lead .hj-note-byline){margin-top:12px}
:where(.hj-article-lead .hj-note-thread-label:empty){display:none}
.hj-article>.hj-article-hero{width:min(var(--hj-hero-wide),calc(100% - 2 * var(--hj-article-gutter)));max-width:none;margin:32px auto}
.hj-article>.hj-article-hero img{display:block;width:100%;height:auto;object-fit:contain}
.hj-article .hj-article-hero .hj-featured-image-caption{color:var(--wp--preset--color--accent-4,#5f5f5f);font-family:var(--wp--preset--font-family--roboto,Roboto,sans-serif);max-width:var(--hj-article-wide);margin-inline:auto}
:where(.hj-article-columns){margin-block:36px 48px;align-items:stretch}
:where(.hj-article-reading,.hj-article-side){min-width:0}
:where(.hj-article-reading .wp-block-post-content){overflow-wrap:anywhere}
:where(.hj-article-reading .wp-block-post-content img){max-width:100%;height:auto}
:where(.hj-article-reading .wp-block-post-content p){margin-block:0 1.1em}
:where(.hj-article-reading .wp-block-post-content h2,.hj-article-reading .wp-block-post-content h3){margin-top:1.5em}
:where(.hj-article-side){box-sizing:border-box;border-inline-start:1px solid var(--wp--preset--color--accent-6,#ddd);padding-inline-start:24px}
:where(.hj-article-sticky){position:sticky;top:100px;align-self:start}
body.admin-bar .hj-article-sticky{top:132px}
:where(.hj-article-sticky .wp-block-post-template){list-style:none;padding:0;margin:0}
:where(.hj-article-sticky .wp-block-post){padding-block:16px;border-bottom:1px solid var(--wp--preset--color--accent-6,#ddd);margin:0}
:where(.hj-article-related-card){display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;align-items:start}
:where(.hj-article-related-card>.wp-block-post-featured-image){margin:0}
:where(.hj-article-related-card>.wp-block-group){margin:0;min-width:0}
:where(.hj-article-related-card .wp-block-post-title){margin:0}
:where(.hj-article-explore){padding-top:30px;border-top:1px solid var(--wp--preset--color--accent-6,#ddd);margin-block:40px}
:where(.hj-article-comments){max-width:740px}
/* Desktop: a lightweight reading list, not a second news feed. */
@media(min-width:782px){
 .hj-article .hj-article-sticky{position:sticky;top:100px}
 body.admin-bar .hj-article .hj-article-sticky{top:132px}
 .hj-article .hj-article-related-card .wp-block-post-title{font-weight:600}
 .hj-article .hj-article-related-card{display:block}
 .hj-article .hj-article-related-card>.wp-block-post-featured-image{display:none}
 .hj-article .hj-article-related-card>.wp-block-group{margin:0}
 .hj-article .hj-article-sticky .wp-block-post-template>li{margin-block:0;padding-block:14px}
 .hj-article .hj-article-sticky .wp-block-post-template>li:first-child{padding-block-start:0}
 .hj-article .hj-article-sticky .wp-block-post-template>li:last-child{border-bottom:0}
 .hj-article .hj-article-related-card .wp-block-post-terms a{text-decoration:none}
 .hj-article .hj-article-related-card .wp-block-post-terms a:hover{text-decoration:underline}
}
@media(max-width:781px){
 .hj-article{--hj-article-gutter:16px;--hj-article-body-size:19px;--hj-article-body-leading:1.6;padding-block:28px 40px}
 .hj-article>.hj-article-hero{width:100%;margin:24px auto;max-width:none}
 .hj-article .hj-article-hero .hj-featured-image-caption{width:calc(100% - 32px);margin-inline:auto}
 .hj-article-columns{flex-direction:column;gap:32px;margin-block:28px 36px}
 .hj-article-columns>.wp-block-column{flex-basis:auto}
 .hj-article-side{padding-inline-start:0;border-inline-start:0;border-top:1px solid var(--wp--preset--color--accent-6,#ddd);padding-top:24px}
 .hj-article-sticky{position:static}
 .hj-article-explore .wp-block-post-template.is-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 /* Full-bleed editorial photos, not icons, avatars, thumbnails or plugin UI. */
 .hj-article-reading .wp-block-post-content > figure.wp-block-image,
 .hj-article-reading .wp-block-post-content > figure.wp-block-gallery,
 .hj-article-reading .wp-block-post-content > .wp-block-image{width:calc(100% + 32px);max-width:none;margin-inline:-16px}
 .hj-article-reading .wp-block-post-content > .wp-block-image img,
 .hj-article-reading .wp-block-post-content > figure.wp-block-image img{display:block;width:100%;height:auto}
 .hj-article-reading .wp-block-post-content > .wp-block-image figcaption,
 .hj-article-reading .wp-block-post-content > .wp-block-gallery>figcaption{padding-inline:16px}
}
@media(max-width:400px){.hj-article-explore .wp-block-post-template.is-layout-grid{gap:20px 14px}}
