/* 2026-11: scoped common layout repairs, preserving each site's design. */
html body .aen-article-toc ol{counter-reset:aen-review-toc;list-style:none!important;padding-inline-start:2.25em!important}
html body .aen-article-toc ol>li{counter-increment:aen-review-toc;display:list-item!important;position:static!important;padding-inline-start:.35em!important}
html body .aen-article-toc ol>li::before{content:none!important;display:none!important}
html body .aen-article-toc ol>li::marker{content:counter(aen-review-toc) '. ';font-variant-numeric:tabular-nums}
html body .aen-article-toc li>a{display:inline!important;white-space:normal;overflow-wrap:anywhere}
html body .aen-r3-info{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}
html body .aen-r3-info>p{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;margin:0!important}
html body .aen-r3-info a{display:block;max-width:100%;min-height:36px;padding-block:.3rem;line-height:1.5;overflow-wrap:anywhere}
html body header .wp-block-site-title,html body header .wp-block-site-title a,html body header .vd-brand>span,html body header .aen-brand-text{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;min-width:0}
html body header .wp-block-site-title a{display:inline-block;line-height:1.2}
html body.single-post main h1.wp-block-post-title{width:100%!important;max-width:100%!important;min-width:0!important;font-size:clamp(26px,2.5vw,36px)!important;line-height:1.2!important;overflow-wrap:normal;word-break:normal}
html body.single-post .aen-common-wide-heading{width:100%;max-width:none;margin:0 0 28px}
html body.single-post .aen-common-wide-heading>:first-child{max-width:100%!important;width:100%!important;margin-inline:0!important}
html body.single-post main .wp-block-post-content{box-sizing:border-box}
html body.single-post main .wp-block-post-content>:is(p,ul,ol,blockquote,h2,h3,h4){max-width:100%;box-sizing:border-box}
html body footer .aen-r5-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;gap:24px!important;align-items:start!important}
html body footer .aen-r5-grid>*{min-width:0;max-width:100%;margin-top:0!important;align-self:start}
html body footer .aen-r5-links{margin:0!important;padding:0!important;list-style:none}
html body footer .aen-r5-links li{margin:0 0 8px!important}
html body footer .aen-r5-links a{line-height:1.5;display:inline-block;padding-block:4px}
html body footer .aen-common-footer-brand .aen-footer-brandline{display:block!important;margin-top:12px!important;max-width:44ch;line-height:1.65}
html body footer :is(.aen-r5-grid,.aen-r5-bottom){min-height:0!important}
html body footer .aen-r5-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;margin-top:24px!important;padding-block:20px!important}
html body footer .aen-r5-inline .aen-r5-links{display:flex;flex-wrap:wrap;gap:8px 20px}
html body footer .aen-r5-inline .aen-r5-links li{margin:0!important}
html body footer .aen-common-footer-brand>.wp-block-site-title{margin-top:0!important}
html body footer :is(.dp-footer-mark,.ot-footer-mark){width:64px!important;max-width:64px!important;margin:0 0 12px!important}
html body footer :is(.dp-footer-mark,.ot-footer-mark) img{width:64px!important;height:64px!important;object-fit:contain}
html body footer :is(.dp-colophon,.ot-bibliography,.lt-bottom){padding-block:32px!important;min-height:0!important}
html body footer .aen-c{max-width:100%;padding:20px!important;margin:0!important}
@media(min-width:1100px){
 html body footer .df-footer-content{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important;gap:48px!important;padding-block:32px!important}
 html body footer .df-footer-content>.aen-r5-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body footer .df-footer-content>.aen-r5-grid .tb-footer-brand{display:none!important}
 html body footer .df-footer-content>.aen-social{grid-column:1/-1;margin:0!important;padding:0!important;min-height:0!important}
}
@media(max-width:1100px){
 html body .wp-block-navigation__responsive-container.is-menu-open{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important;z-index:100000!important;box-sizing:border-box}
 html body .aen-vd-overlay:not([hidden]){position:fixed!important;inset:0!important;z-index:100000!important}
 html body .aen-vd-drawer{max-height:100dvh!important;overflow-y:auto!important;box-sizing:border-box}
}
@media(max-width:781px){
 html body footer .aen-r5-grid{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 html body footer .aen-r5-bottom{align-items:flex-start}
 html body.single-post main h1.wp-block-post-title{font-size:26px!important;line-height:1.25!important}
}

html body dialog.vd-menu[open]{position:fixed;inset:0;margin:auto;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}

html body footer .df-footer-content:has(>.df-footer-intro) .tb-footer-brand{display:none!important}

/* Full-bleed header clipping must not crop an open menu or search panel. */
html body header:has(.is-menu-open,.aen-vd-overlay:not([hidden]),details[open]),
html body header :has(.is-menu-open,.aen-vd-overlay:not([hidden]),details[open]){clip-path:none!important;overflow:visible!important}
html body header:has(.is-menu-open,.aen-vd-overlay:not([hidden])){position:relative;z-index:100001}
html body footer .tb-copyright{margin:0!important;padding:0!important;border:0!important}
html body footer .df-footer-content{row-gap:24px!important}
html body footer .df-footer-content .aen-share-links{margin:0!important;padding:0!important;justify-content:flex-start}

html body header .aen-common-search{display:none;position:relative;flex:0 0 auto;z-index:30}
html body header .aen-common-search>summary{display:flex!important;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-height:44px;padding:0 10px;font-size:14px;font-weight:600;border:1px solid currentColor;border-radius:4px}
html body header .aen-common-search>summary::-webkit-details-marker{display:none}
html body header .aen-common-search-form{position:absolute;right:0;top:calc(100% + 12px);width:330px;max-width:calc(100vw - 40px);margin:0!important;padding:18px!important;box-sizing:border-box;background:var(--wp--preset--color--base,#fff);color:var(--wp--preset--color--contrast,#172b29);border:1px solid currentColor;border-radius:6px;box-shadow:0 8px 24px #0002;z-index:1000}
html body header .aen-common-search-form label{display:block!important;font-size:14px;margin-bottom:8px}
html body header .aen-common-search-form>div{display:flex;gap:8px;width:100%}
html body header .aen-common-search-form input[type=search]{flex:1 1 auto!important;min-width:0!important;width:100%;height:44px;padding:8px;box-sizing:border-box;background:#fff;color:#172b29;border:1px solid #777}
html body header .aen-common-search-form button{flex:0 0 auto;min-height:44px;padding:8px 12px}
@media(min-width:1101px){html body header .aen-common-search{display:block}html body header .aen-vd-nav{display:flex;align-items:center;gap:16px}}

html body.single-post .aen-common-wide-heading h1.wp-block-post-title{width:100%!important;max-width:100%!important;font-size:clamp(26px,2.5vw,36px)!important;line-height:1.2!important;word-break:normal;overflow-wrap:normal}
html body.single-post :is(.fg-layout,.vb-layout,.sl-letter-3col)>.aen-common-wide-heading{grid-column:1/-1}
html body footer .aen-common-footer-description{display:block!important;max-width:48ch;line-height:1.65!important;margin-block:12px 0!important}
html body footer .aen-common-footer-introduction{min-width:0;max-width:100%}
@media(max-width:781px){html body.single-post .aen-common-wide-heading h1.wp-block-post-title{font-size:26px!important;line-height:1.25!important}}

/* Verified site-specific layout adjustments. */
@media(min-width:1101px){html:root body .wp-site-blocks header .vb-header{display:flex!important;align-items:center!important;gap:24px!important}html:root body .wp-site-blocks header .vb-masthead{flex:0 0 auto!important;width:auto!important;padding-block:22px!important}html:root body .wp-site-blocks header .vb-nav-shell{flex:1!important;min-width:0!important;margin:0!important}html:root body .wp-site-blocks header .vb-nav-row{width:100%!important}html:root body .wp-site-blocks header .wp-block-navigation__container{gap:16px!important}}@media(min-width:1101px){html:root body .wp-site-blocks header .vb-masthead{width:max-content!important;inline-size:max-content!important;min-width:0!important;max-width:none!important;min-height:0!important;height:auto!important;margin-inline:0!important}html:root body .wp-site-blocks header .vb-nav-shell{margin-inline:0!important}html:root body .wp-site-blocks header .sy-nav-row{margin-inline:0!important}}

/* Follow-up mobile search and header layout repairs. */
/* Mobile header/search repair: ventureplain.com */
html body .wp-site-blocks header .vb-header:has(details[open]){position:relative!important;isolation:isolate;z-index:1000!important;box-shadow:none!important}
html body .wp-site-blocks header .vb-header:has(details[open])::before{content:"";display:block;position:absolute;inset:0 auto 0 50%;width:100vw;transform:translateX(-50%);background:#fff;pointer-events:none;z-index:-1}
@media(max-width:781px){
html body .wp-site-blocks header .vb-header .vb-search-toggle{position:static!important}
html body .wp-site-blocks header .vb-header .vb-search-toggle .wp-block-search{position:absolute!important;top:100%!important;left:0!important;right:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important}
}

