/* PB-D04: compact editorial cards, a visible search field and balanced headings. */
html body.aen-pb-local-pb-d04 .vd-header .vd-header-row{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:clamp(12px,1.5vw,24px)!important;padding-block:12px!important}
html body.aen-pb-local-pb-d04 .vd-header .vd-brand{align-items:center!important;padding:0!important;margin:0!important;flex:0 1 auto!important}
html body.aen-pb-local-pb-d04 .vd-brand :is(.wp-block-site-logo,.wp-block-site-title){margin:0!important;line-height:1.15!important}
html body.aen-pb-local-pb-d04 .vd-brand .wp-block-site-logo a{display:flex;align-items:center;min-height:44px}
html body.aen-pb-local-pb-d04 .vd-header .aen-vd-nav{margin:0 auto 0 0!important;flex:1 1 auto!important;order:0!important;min-width:0}
html body.aen-pb-local-pb-d04 .aen-vd-desktop{justify-content:flex-start!important;flex-wrap:wrap;gap:0 clamp(12px,1.2vw,20px);line-height:1.35}
html body.aen-pb-local-pb-d04 .aen-vd-desktop a{padding-block:10px}
html body.aen-pb-local-pb-d04 .aen-d04-header-search{flex:0 1 240px;width:240px;min-width:180px;margin:0!important;align-self:center}
html body.aen-pb-local-pb-d04 .aen-d04-header-search>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html body.aen-pb-local-pb-d04 .aen-d04-header-search>div{display:flex;gap:0}
html body.aen-pb-local-pb-d04 .aen-d04-header-search input{width:100%;min-width:0;min-height:44px;border-radius:4px 0 0 4px;padding:8px 10px;border:1px solid #71857f}
html body.aen-pb-local-pb-d04 .aen-d04-header-search button{min-height:44px;border-radius:0 4px 4px 0;padding:8px 12px}
html body.aen-pb-local-pb-d04 .aa-card .wp-block-post-title{font-size:22px!important;line-height:1.25!important;margin-bottom:12px!important}
html body.aen-pb-local-pb-d04 .aa-card .wp-block-post-excerpt{font-size:14px!important;line-height:1.6!important;margin-bottom:16px!important}
html body.aen-pb-local-pb-d04 .aa-card .aa-card-copy{padding:18px 20px!important}
html body.aen-pb-local-pb-d04 .aa-card .ph-meta{font-size:12px!important;gap:4px 10px;padding-top:12px;align-items:center;justify-content:flex-start}
html body.aen-pb-local-pb-d04 .aen-d04-card-meta .ph-author{flex-basis:100%;font-size:12px}
html body.aen-pb-local-pb-d04 .aen-d04-card-meta .ph-author img{width:22px;height:22px}
html body.aen-pb-local-pb-d04 .aen-d04-card-meta time{white-space:nowrap}
html body.aen-pb-local-pb-d04 .aen-d04-card-meta .ph-category{font-size:12px!important;line-height:1.5;min-height:28px;padding-block:4px;margin:0!important}
html body.aen-pb-local-pb-d04 .aen-d04-card-meta .ph-category:before{display:none}
html body.aen-pb-local-pb-d04 .ph-archive-title{text-align:center;padding-block:30px 24px;margin-bottom:28px}
html body.aen-pb-local-pb-d04 .ph-archive-title h1{text-align:center}
html body.aen-pb-local-pb-d04:is(.page,.single-post) main h1.wp-block-post-title{text-align:center!important;margin:0!important;padding:0!important}
html body.aen-pb-local-pb-d04.page .ph-page{padding-top:24px!important;margin-top:0!important}
html body.aen-pb-local-pb-d04.page .vd-page-heading{padding-block:0 24px!important;margin-block:0 28px!important;text-align:center}
html body.aen-pb-local-pb-d04.page .vd-page-heading>p{margin-top:12px!important}
html body.aen-pb-local-pb-d04.single-post .aen-common-wide-heading{text-align:center}
html body.aen-pb-local-pb-d04.single-post .aen-common-wide-heading .ph-meta{justify-content:center}
@media(min-width:768px){
 html body.aen-pb-local-pb-d04 .aen-vd-desktop{display:flex!important}
 html body.aen-pb-local-pb-d04 .aen-vd-toggle{display:none!important}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template{grid-template-columns:repeat(12,minmax(0,1fr));gap:24px}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li{grid-column:span 4}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:first-child{grid-column:1/8;grid-row:span 3}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:first-child .aa-card{display:flex!important;flex-direction:column;grid-template-columns:none}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:first-child .aa-card-media{height:auto;min-height:0;aspect-ratio:2.2/1}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:first-child .aa-card-copy{justify-content:flex-start;border-top:0;flex:1}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:first-child .wp-block-post-title{font-size:clamp(23px,2.1vw,30px)!important}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:nth-child(2),html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:nth-child(3){grid-column:8/-1}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .aa-card{display:grid;grid-template-columns:35% minmax(0,1fr);align-items:stretch}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .aa-card-media{height:100%;aspect-ratio:auto;min-height:160px}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .aa-card-copy{padding:16px!important}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .wp-block-post-title{font-size:18px!important;-webkit-line-clamp:3}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .wp-block-post-excerpt{display:none}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .ph-author{display:none}
}
@media(min-width:768px) and (max-width:1100px){
 html body.aen-pb-local-pb-d04 .vd-header .vd-header-row{width:calc(100% - 36px)!important;gap:14px!important}
 html body.aen-pb-local-pb-d04 .vd-brand .wp-block-site-title{font-size:21px!important}
 html body.aen-pb-local-pb-d04 .aen-vd-desktop{font-size:12px!important;gap:0 12px}
 html body.aen-pb-local-pb-d04 .aen-d04-header-search{flex-basis:190px;width:190px;min-width:160px}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template{gap:18px}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .aa-card{grid-template-columns:28% minmax(0,1fr)}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .aa-card-copy{padding:12px!important}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .wp-block-post-title{font-size:16px!important}
}
@media(max-width:767px){
 html body.aen-pb-local-pb-d04 .vd-header .vd-header-row{flex-wrap:wrap!important;gap:10px!important;width:calc(100% - 40px)!important;padding-block:12px!important}
 html body.aen-pb-local-pb-d04 .vd-header .vd-brand{flex:1 1 auto!important}
 html body.aen-pb-local-pb-d04 .vd-header .aen-vd-nav{flex:0 0 auto!important;margin:0!important;order:0!important}
 html body.aen-pb-local-pb-d04 .aen-vd-desktop{display:none!important}
 html body.aen-pb-local-pb-d04 .aen-vd-toggle{display:flex!important}
 html body.aen-pb-local-pb-d04 .aen-d04-header-search{flex:1 0 100%;width:100%;min-width:0}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template{grid-template-columns:minmax(0,1fr);gap:24px}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li{grid-column:auto;grid-row:auto}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:first-child .aa-card{display:flex!important;flex-direction:column}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:first-child .aa-card-media{height:auto;min-height:0;aspect-ratio:16/9}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:first-child .wp-block-post-title{font-size:24px!important}
 html body.aen-pb-local-pb-d04 .aa-card .wp-block-post-title{font-size:21px!important}
 html body.aen-pb-local-pb-d04.page .ph-page{padding-top:20px!important}
}
/* Clear the legacy popup positioning and align glyphs with the logo and category links. */
html body.aen-pb-local-pb-d04 .vd-header .vd-brand .wp-block-site-logo,
html body.aen-pb-local-pb-d04 .vd-header .vd-brand .wp-block-site-logo a{height:44px!important;min-height:44px!important;display:flex!important;align-items:center!important}
html body.aen-pb-local-pb-d04 .vd-header .vd-brand .wp-block-site-title a{display:inline-flex!important;align-items:center!important;min-height:44px!important;line-height:1.15!important}
html body.aen-pb-local-pb-d04 .vd-header .aen-d04-header-search{position:static!important;inset:auto!important;max-width:none!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;z-index:auto!important}
html body.aen-pb-local-pb-d04 .aen-d04-header-search button{background:var(--vd-ink);color:#fff;border:0;font-size:14px}
html body.aen-pb-local-pb-d04 .aen-d04-header-search input{box-sizing:border-box;height:44px;font-size:14px}
html body.aen-pb-local-pb-d04.page .ph-breadcrumb{padding-block:4px!important;margin-block:0!important}
html body.aen-pb-local-pb-d04.page .ph-breadcrumb a{min-height:28px!important}
html body.aen-pb-local-pb-d04.page .aen-r3-reading-column>.ph-shell{margin-block-start:0!important}
/* The surrounding header shell already owns the responsive page gutter. */
html body.aen-pb-local-pb-d04 .vd-header .vd-header-row{width:100%!important;max-width:100%!important}
html body.aen-pb-local-pb-d04 .vd-header .vd-brand{flex:0 0 auto!important}
html body.aen-pb-local-pb-d04 .vd-header .vd-brand .wp-block-site-title,
html body.aen-pb-local-pb-d04 .vd-header .vd-brand .wp-block-site-title a{white-space:nowrap!important;overflow:visible!important;word-break:normal!important;overflow-wrap:normal!important}
@media(max-width:767px){html body.aen-pb-local-pb-d04 .vd-header .vd-brand{flex:1 1 auto!important}}
/* PB-D04 follow-up: categories meet the search field at the right of the masthead. */
html body.aen-pb-local-pb-d04 .vd-header .aen-vd-nav{flex:0 1 auto!important;margin-left:auto!important;margin-right:0!important}
html body.aen-pb-local-pb-d04 .vd-header .aen-vd-desktop{justify-content:flex-end!important}
/* A normal flow box lets text widen again immediately after the recommendation float. */
html body.aen-pb-local-pb-d04.single-post .wp-site-blocks .aen-pb-reading-layout.aen-pb-reading-layout{display:block!important}
html body.aen-pb-local-pb-d04.single-post .aen-pb-reading-layout>.aen-common-wide-heading{margin:0 0 12px!important;padding:0!important}
html body.aen-pb-local-pb-d04.single-post .aen-pb-reading-body,
html body.aen-pb-local-pb-d04.single-post .aen-r3-reading-column,
html body.aen-pb-local-pb-d04.single-post .aen-r3-reading-column>.ph-shell,
html body.aen-pb-local-pb-d04.single-post .ph-single{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
html body.aen-pb-local-pb-d04.single-post .aen-common-wide-heading .ph-meta{margin-block:8px 0!important;padding:0!important}
html body.aen-pb-local-pb-d04.single-post .wp-block-post-content.aen-d04-wrap-content{display:flow-root!important;margin:0!important;padding:0!important;overflow:visible!important}
html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content>.aen-pb-reading-aside{box-sizing:border-box;position:static!important;width:30%!important;max-width:360px!important;margin:0 36px 24px 0!important;padding:0!important;border:0!important;float:left}
html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content>.aen-pb-reading-aside+*{margin-block-start:0!important}
/* Text blocks wrap; scrollable media uses the available width beside the recommendations. */
html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content>:is(table,figure,pre,.wp-block-table,.wp-block-columns,.wp-block-cover,.wp-block-media-text){clear:none!important;width:auto!important;max-width:100%!important;overflow:auto}
html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content>:is(ul,ol){list-style-position:outside!important}
html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content>.aen-pb-reading-aside h2{margin-top:0!important}
@media(min-width:768px) and (max-width:1099px){
 html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content>.aen-pb-reading-aside{width:32%!important;max-width:300px!important;margin-right:24px!important}
 html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content .aen-pb-related-images a:has(img){grid-template-columns:64px minmax(0,1fr);gap:10px}
 html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content .aen-pb-related-image{width:64px;height:48px}
 html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content .aen-pb-related-list{font-size:14px}
}
@media(max-width:767px){
 html body.aen-pb-local-pb-d04 .vd-header .aen-vd-nav{flex:0 0 auto!important;margin:0!important}
 html body.aen-pb-local-pb-d04.single-post .aen-pb-reading-layout>.aen-common-wide-heading{margin-bottom:12px!important}
 html body.aen-pb-local-pb-d04.single-post .wp-block-post-content.aen-d04-wrap-content{display:flex!important;flex-direction:column;align-items:stretch}
 html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content>.aen-pb-reading-aside{order:2;float:none!important;width:100%!important;max-width:none!important;margin:28px 0 0!important;padding:20px 0 0!important;border-top:1px solid var(--vd-line)!important}
 html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content .aen-pb-related-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;font-size:13px}
 html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content .aen-pb-related-images a:has(img){display:block}
 html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content .aen-pb-related-image{width:64px;height:48px;margin-bottom:8px}
}
@media(min-width:768px){html body.aen-pb-local-pb-d04 .vd-header .vd-header-row{column-gap:14px!important}}

html body.aen-pb-local-pb-d04.single-post .aen-common-wide-heading{margin:0 0 12px!important;padding:0!important}


/* Keep list markers, nested indentation and table columns out of the float's line boxes. */
html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content>.aen-d04-structured{display:flow-root;box-sizing:border-box;clear:none;max-width:100%;margin-block:1.25em;overflow-wrap:break-word}
html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content>.aen-d04-list-wrap{width:auto;min-width:min(100%,28rem)}
html body.aen-pb-local-pb-d04.single-post .aen-d04-list-wrap :is(ul,ol){list-style-position:outside!important;padding-inline-start:1.65em!important}
html body.aen-pb-local-pb-d04.single-post .aen-d04-list-wrap>:is(ul,ol){margin-block:0!important}
html body.aen-pb-local-pb-d04.single-post .aen-d04-list-wrap li>p:first-child{margin-block-start:0!important}
html body.aen-pb-local-pb-d04.single-post .aen-d04-list-wrap li>p:last-child{margin-block-end:0!important}
html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content>:is(.aen-d04-table-wrap,.aen-d04-code-wrap){width:max-content;min-width:0;overflow:auto;overscroll-behavior-inline:contain}
html body.aen-pb-local-pb-d04.single-post .aen-d04-table-wrap>:is(table,figure),
html body.aen-pb-local-pb-d04.single-post .aen-d04-table-wrap figure{margin:0!important;max-width:none!important;overflow:visible!important}
html body.aen-pb-local-pb-d04.single-post .aen-d04-table-wrap table{display:table!important;table-layout:auto!important;width:max-content!important;max-width:none!important;margin:0!important;overflow:visible!important}
html body.aen-pb-local-pb-d04.single-post .aen-d04-table-wrap :is(th,td){word-break:normal!important;overflow-wrap:normal!important;white-space:normal}
html body.aen-pb-local-pb-d04.single-post .aen-d04-code-wrap pre{width:max-content!important;max-width:none!important;margin:0!important;overflow:visible!important}
html body.aen-pb-local-pb-d04.single-post .aen-d04-structured>:is(h2,h3,h4,h5,h6):first-child{margin-block-start:0!important}
@media(max-width:767px){
 html body.aen-pb-local-pb-d04.single-post .aen-d04-wrap-content>.aen-d04-structured{min-width:0;width:100%;flex:none}
}

/* Three compact stories beside the lead, with landscape thumbnails rather than stretched panels. */
@media(min-width:768px){
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:nth-child(4){grid-column:8/-1}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .aa-card{grid-template-columns:34% minmax(0,1fr);align-items:center}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .aa-card-media{height:auto!important;min-height:0!important;aspect-ratio:4/3;align-self:center}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .aa-card-copy{justify-content:center}
 html body.aen-pb-local-pb-d04 .aa-home .wp-block-post-template>li:is(:nth-child(2),:nth-child(3),:nth-child(4)) .ph-meta{margin-top:8px!important}
}
html body.aen-pb-local-pb-d04 .aen-d04-placeholder img{background:#e7f6f0}
/* Basic pages keep a clear gap below the masthead and share the pack's green accent. */
html body.aen-pb-local-pb-d04.page:not(.home) .wp-site-blocks>main{padding-top:24px!important}
html body.aen-pb-local-pb-d04.page .ph-page{border-top-color:var(--vd-accent)!important}
html body.aen-pb-local-pb-d04.page :is(.vd-page-heading,.vd-page-caption){border-color:var(--vd-accent)!important}
@media(max-width:767px){html body.aen-pb-local-pb-d04.page:not(.home) .wp-site-blocks>main{padding-top:20px!important}}