/* PB-G01: search dialog, balanced cards, and a continuous post reading flow. */
html body .cm-header-search .cm-search-open { display:grid;place-items:center;width:40px;height:40px;padding:8px;border:0;background:transparent;color:var(--cm-plum);border-radius:4px; }
html body .cm-header-search .cm-search-open:hover { background:var(--cm-paper); }
html body .cm-header-search .cm-search-modal { position:fixed;inset:0;width:min(860px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);height:fit-content;margin:auto;padding:62px 48px 48px;border:1px solid var(--cm-line);border-radius:14px;background:#fff;color:var(--cm-ink);box-shadow:0 24px 90px #16101e55;overflow:auto; }
html body .cm-header-search .cm-search-modal:not([open]) { display:none; }
html body .cm-header-search .cm-search-modal::backdrop { background:#241b32bd;backdrop-filter:blur(3px); }
html body .cm-search-modal-content { width:100%;max-width:none; }
html body .cm-search-modal h2 { margin:0 0 24px;font-size:clamp(25px,2.6vw,34px);color:var(--cm-plum); }
html body .cm-search-modal .wp-block-search { width:100%;max-width:none; }
html body .cm-search-modal .wp-block-search__inside-wrapper { display:flex;gap:12px; }
html body .cm-search-modal input[type=search] { flex:1 1 0;min-width:0;min-height:64px;padding:16px 20px;border:1px solid #bfb2c9;border-radius:6px;background:#fff;color:var(--cm-ink);font-size:21px; }
html body .cm-search-modal .wp-block-search__button { flex:0 0 auto;min-height:64px;padding:16px 26px;font-size:18px;border-radius:6px; }
html body .cm-search-modal .cm-search-close { position:absolute;top:14px;right:14px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--cm-paper);color:var(--cm-plum);font:32px/1 Arial,sans-serif; }
html body .cm-search-modal .cm-search-close:hover { background:var(--cm-line); }
body.cm-search-is-open { overflow:hidden; }

html body .cm-home .cm-hero { padding-bottom:12px!important; }
html body .cm-home>.cm-shell>.cm-section-title { margin-top:24px!important;padding-top:20px!important; }
html body .cm-home :is(.cm-hero,.cm-latest) .cm-card-copy { padding:20px!important;display:flex;flex-direction:column;gap:12px; }
html body .cm-home :is(.cm-hero,.cm-latest) .cm-card-copy>* { margin-block:0!important; }
html body .cm-home .cm-hero .cm-story { display:flex;flex-direction:column; }
html body .cm-home .cm-hero .cm-card-copy { flex:1;justify-content:center; }
html body .cm-home .cm-hero .cm-card-copy .cm-category { font-size:12px;line-height:1.5;text-transform:uppercase;letter-spacing:.35px; }
html body .cm-home .cm-hero .cm-category a:hover { text-decoration:underline; }
html body.home main .wp-block-query.cm-query.cm-latest>.wp-block-post-template>.wp-block-post :is(.wp-block-post-title,.wp-block-post-excerpt) { min-block-size:0!important; }
html body .cm-home .cm-latest .cm-story { display:flex;flex-direction:column; }
html body .cm-home .cm-latest .cm-card-copy { flex:1; }
html body .cm-home .cm-latest .cm-meta { margin-top:auto!important; }

html body .wp-site-blocks .aen-r3-footer-shell .cm-footer-inner.aen-r5-bottom { display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start!important;gap:24px 36px;padding:32px 0!important;text-align:left; }
html body footer .cm-footer-inner .aen-common-footer-description { max-width:none!important;margin:0!important;line-height:1.65!important; }
html body .wp-site-blocks .aen-r3-footer-shell .cm-footer-inner>.aen-r5-inline { align-self:start;margin:0!important; }
html body .wp-site-blocks .aen-r3-footer-shell .cm-footer-inner>.aen-r5-inline .aen-r5-links { align-items:start;line-height:1.65; }
html body .wp-site-blocks .aen-r3-footer-shell .cm-footer-inner>.cm-footer-copyright { grid-column:1/-1;width:100%;padding-top:18px;margin:0!important;border-top:1px solid #dcd4e3; }

html body.aen-pb-local.single-post.aen-pb-reading-active .wp-site-blocks .aen-pb-reading-layout.aen-pb-reading-layout { display:block!important; }
html body.single-post .wp-site-blocks .cm-narrow>.aen-pb-reading-aside { position:static;width:100%!important;max-width:none;margin:36px 0 24px!important;padding:28px 0 0;border-top:1px solid var(--cm-line); }
html body.single-post .wp-site-blocks .cm-narrow>.aen-pb-reading-aside .aen-pb-related-list { grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 32px; }
html body.single-post .wp-site-blocks .cm-narrow>.cm-meta { margin:24px 0 0!important;padding-top:20px;border-top:1px solid var(--cm-line);text-transform:none;font-size:13px; }
html body.single-post .wp-site-blocks .cm-narrow>.cm-comments { margin:28px 0 0!important;padding-top:28px; }
html body .cm-native-comments .comment-form { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px; }
html body .cm-native-comments .comment-form>p { margin:0;min-width:0; }
html body .cm-native-comments .comment-form>p:not(.comment-form-author):not(.comment-form-email) { grid-column:1/-1; }
html body .cm-native-comments .comment-form label { display:block;margin-bottom:6px;font-weight:600;font-size:14px; }
html body .cm-native-comments :is(input[type=text],input[type=email],input[type=url],textarea) { display:block;width:100%;max-width:100%;min-height:46px;padding:12px 14px;border:1px solid #bfb2c9;border-radius:4px;background:#fff;color:var(--cm-ink);font:inherit; }
html body .cm-native-comments textarea { min-height:150px;resize:vertical; }
html body .cm-native-comments .comment-form-cookies-consent { display:flex;align-items:flex-start;gap:9px; }
html body .cm-native-comments .comment-form-cookies-consent label { font-weight:400; }
html body .cm-native-comments .comment-form-cookies-consent input { margin-top:6px; }
html body .cm-native-comments .submit { min-height:46px;padding:12px 22px;border:0;border-radius:4px;background:var(--cm-plum);color:#fff;font:inherit;font-weight:650;cursor:pointer; }
html body .cm-native-comments :is(.comment-notes,.cm-comment-moderation-note,.cm-comments-empty) { font-size:14px; }
html body .cm-native-comments .cm-comment-list { margin:0 0 30px;padding:0;list-style:none; }
html body .cm-native-comments .cm-comment-list li { margin:18px 0; }
html body .cm-native-comments .comment-body { padding:18px 0;border-bottom:1px solid var(--cm-line); }
html body .cm-native-comments .avatar { float:left;margin:0 12px 0 0;border-radius:50%; }
html body .cm-native-comments .comment-metadata { font-size:12px; }
html body .cm-native-comments .comment-content { margin-top:12px; }

@media(max-width:1100px) {
 html body .wp-site-blocks .aen-r3-footer-shell .cm-footer-inner.aen-r5-bottom { grid-template-columns:minmax(0,1fr);gap:18px; }
 html body .wp-site-blocks .aen-r3-footer-shell .cm-footer-inner>.aen-r5-inline .aen-r5-links { justify-content:flex-start; }
}
@media(max-width:600px) {
 html body .cm-header-search .cm-search-modal { width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:64px 22px 28px;border-radius:10px; }
 html body .cm-search-modal .wp-block-search__inside-wrapper { flex-direction:column; }
 html body .cm-search-modal input[type=search] { flex:auto;font-size:18px;min-height:56px; }
 html body .cm-search-modal .wp-block-search__button { min-height:50px;padding:12px 18px; }
 html body .cm-home>.cm-shell>.cm-section-title { margin-top:20px!important;padding-top:18px!important; }
 html body.single-post .wp-site-blocks .cm-narrow>.aen-pb-reading-aside .aen-pb-related-list { grid-template-columns:minmax(0,1fr); }
 html body .cm-native-comments .comment-form { grid-template-columns:minmax(0,1fr); }
 html body .cm-native-comments .comment-form>p { grid-column:1/-1; }
}

/* Article media defaults: center media without enlarging images or changing cell alignment. */
html body.single-post .wp-site-blocks main.cm-main .wp-block-post-content .wp-block-image:not(.alignleft):not(.alignright) { width:fit-content;max-width:100%!important;margin-inline:auto!important; }
html body.single-post .wp-site-blocks main.cm-main .wp-block-post-content img:not(.alignleft):not(.alignright):not(.emoji):not(.wp-smiley) { display:block;max-width:100%!important;height:auto;margin-inline:auto!important; }
html body.single-post .wp-site-blocks main.cm-main .wp-block-post-content .wp-block-table { max-width:100%!important;margin-inline:auto!important;overflow-x:auto;overscroll-behavior-inline:contain; }
html body.single-post .wp-site-blocks main.cm-main .wp-block-post-content table { max-width:100%!important;margin-inline:auto!important; }
html body.single-post .wp-site-blocks main.cm-main .wp-block-post-content table:not(.has-fixed-layout) { display:block;width:fit-content!important;overflow-x:auto;overscroll-behavior-inline:contain; }
