/*
Theme Name: Captionmeadow
Author: Captionmeadow
Description: Block theme for Captionmeadow. Base and trust pages come from this pack; navigation, authors, contact, tagline, logo and icon come from the AEN PLAN contract.
Version: 1.0.5
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: captionmeadow
*/
:root{--cm-plum:#453657;--cm-violet:#795b8a;--cm-coral:#bc654e;--cm-paper:#f8f7fa;--cm-ink:#282632;--cm-line:#e8e4ed}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cm-paper);color:var(--cm-ink);font:16px/1.75 "Mulish","Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--cm-violet)}img{max-width:100%;height:auto}button,input,summary{font:inherit}button,summary{cursor:pointer}button:disabled{cursor:default}a,button,input,summary{outline-offset:5px}:focus-visible{outline:2px solid var(--cm-coral)}h1,h2,h3,.wp-block-post-title{font-family:"Trebuchet MS",Arial,sans-serif;font-weight:700;line-height:1.35;overflow-wrap:anywhere}h1{font-size:31px}h2{font-size:24px}p{margin:0 0 1.5em}.wp-site-blocks>*{margin-block-start:0}.cm-sr-only{position:absolute!important;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.cm-header{background:white}.cm-header-inner{width:min(1290px,calc(100% - 60px));margin:auto;display:flex;align-items:center;gap:22px;min-height:96px}.cm-header-inner>*{margin:0!important}.cm-brand{display:flex;align-items:center;gap:9px;flex-shrink:0}.cm-brand>*{margin:0!important}.cm-brand img{display:block}.cm-brand .wp-block-site-title{font:800 24px/1.1 "Trebuchet MS",Arial,sans-serif;white-space:nowrap;color:var(--cm-plum)}.cm-navigation{margin-left:auto!important}.cm-navigation .wp-block-navigation__container{gap:18px}.cm-navigation .wp-block-navigation-item__content{font-size:12px;line-height:1.4;font-weight:650}.cm-menu-only,.cm-menu-search{display:none!important}
.cm-header-search{position:relative;flex:0 0 26px}.cm-header-search summary{display:grid;place-items:center;padding:8px 0;list-style:none}.cm-header-search summary::-webkit-details-marker{display:none}.cm-search-panel{position:fixed;inset:0;background:#24202ded;z-index:90;display:grid;place-items:center;padding:50px 30px;color:white}.cm-search-panel>div{width:min(700px,100%)}.cm-header-search[open] summary{position:relative;z-index:91;color:white}.cm-search-panel input{background:transparent;border:0;border-bottom:2px solid #b6a5c4;color:white;border-radius:0;font-size:28px}.cm-search-panel input::placeholder{color:#d8cfe2}.cm-search-panel .wp-block-search__button{background:transparent;color:white;font-size:20px;border-bottom:2px solid #b6a5c4;border-radius:0}
.cm-main{padding:50px 0 65px}.cm-shell{width:min(1290px,calc(100% - 60px));margin:auto}.cm-home{background:white;padding-top:18px}.cm-query .wp-block-post-template{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}.cm-query .wp-block-post-template>li{margin:0!important;min-width:0}.cm-story{height:100%;background:white;box-shadow:0 8px 25px #45365704;overflow:hidden}.cm-story>*{margin:0!important}.cm-story-heading{padding:28px 30px 22px}.cm-story .wp-block-post-title{font-size:21px;margin:0;line-height:1.4}.cm-category{font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.35px;color:var(--cm-violet);margin:0 0 15px}.cm-cover{display:block;aspect-ratio:3/2;overflow:hidden;background:#f0edf4}.cm-cover img,.cm-no-image{display:block;width:100%;height:100%;object-fit:cover}.cm-no-image{display:grid;place-items:center;background:#f0edf4;color:#b4a4c2}.cm-no-image>span{font:80px/1 Georgia,serif;opacity:.35;transform:translateY(12px)}.cm-story-copy{padding:28px 30px}.wp-block-post-excerpt{font-size:15px;line-height:1.75;margin:0 0 24px;color:#5c5666}.wp-block-post-excerpt p{margin:0}.cm-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 13px;font-size:10px;line-height:1.6;text-transform:uppercase;color:#6b6275}.cm-meta>*+*:before{content:"/";margin-right:12px;color:#b9adbf}.cm-byline{display:inline-flex;align-items:center;gap:6px}.cm-byline img{border-radius:50%}.cm-by-prefix{display:none}.cm-query>.wp-block-query-pagination{margin:45px 0 0;gap:10px}.wp-block-query-pagination .page-numbers,.wp-block-query-pagination-previous,.wp-block-query-pagination-next{padding:8px 12px;font-size:13px;border:1px solid var(--cm-line);background:white}.wp-block-query-pagination .current{background:var(--cm-plum);color:white}.cm-main h1{margin:0 0 38px}
.cm-hero{position:relative;margin:0!important;padding:0 40px 35px}.cm-hero .wp-block-post-template{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:0 0 8px}.cm-hero .wp-block-post-template>li{flex:0 0 calc((100% - 48px)/3);scroll-snap-align:start}.cm-hero .cm-story{border-radius:11px;box-shadow:0 2px 9px #45365712}.cm-hero .cm-card-copy{padding:18px}.cm-hero .wp-block-post-title{font-size:17px;line-height:1.4}.cm-rail-controls{position:static}.cm-rail-controls>.cm-prev,.cm-rail-controls>.cm-next{position:absolute;top:35%;border:0;border-radius:50%;background:#453657df;color:white;font:34px/1 Arial,sans-serif;width:44px;height:44px;padding:0 0 4px}.cm-prev{left:50px}.cm-next{right:50px}.cm-rail-controls button:disabled{opacity:.35}.cm-rail-dots{display:flex;align-items:center;justify-content:center;gap:8px;margin:16px 0 0}.cm-rail-dots button{border:0;border-radius:6px;width:10px;height:10px;background:#d8d1de;padding:0}.cm-rail-dots button[aria-pressed=true]{width:26px;background:var(--cm-coral)}
.cm-topic-section{margin:45px 40px 0!important}.cm-section-title{text-transform:uppercase;font-size:27px;line-height:1.4;margin:0 0 30px;position:relative;padding-bottom:14px;color:var(--cm-plum)}.cm-section-title:after{content:"";position:absolute;bottom:0;left:0;width:60px;height:4px;background:var(--cm-coral);border-radius:2px}.cm-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.cm-topic-card{background:white;border-radius:10px;overflow:hidden;box-shadow:0 3px 13px #45365710}.cm-card-copy{padding:20px}.cm-topic-badge{display:inline-block;font-size:10px;text-transform:uppercase;letter-spacing:.6px;background:#f5edef;color:#995146;border-radius:3px;padding:3px 8px;margin-bottom:12px}.cm-topic-card h3{font-size:17px;margin:0}.cm-topic-card p{font-size:15px;color:#6b6275;margin:15px 0 0}.cm-topic-3 .cm-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cm-home>.cm-shell>.cm-section-title{margin:50px 40px 30px;border-top:1px solid var(--cm-line);padding-top:35px}.cm-latest{margin:0 40px}.cm-latest .wp-block-post-template{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.cm-latest .cm-story{border-radius:10px;box-shadow:0 3px 13px #45365710}.cm-latest .cm-cover{aspect-ratio:3/2}.cm-latest .cm-story .wp-block-post-title{font-size:16px;margin-bottom:12px}.cm-latest .cm-card-copy{padding:18px}.cm-latest .cm-category{font-size:10px;margin-bottom:10px;color:#995146}.cm-latest .wp-block-post-excerpt{font-size:13px;margin-bottom:14px}.cm-latest .cm-meta{border-top:1px solid var(--cm-line);padding-top:12px;text-transform:none;font-size:12px}.cm-latest .cm-by-prefix{display:inline}.cm-latest time{display:none}.cm-home .wp-block-buttons{margin:35px 0 0}
.cm-narrow{max-width:750px;margin:auto}.cm-narrow>h1{font-size:32px;line-height:1.45;margin:0 0 24px}.cm-narrow>.cm-meta{margin-bottom:35px}.cm-narrow>.wp-block-post-content{padding-inline:0;font-size:16px;line-height:1.85}.wp-block-post-content>*{max-width:100%!important}.wp-block-post-content h2{font-size:26px;margin-top:30px}.wp-block-post-content h3{font-size:21px;margin-top:25px}.wp-block-post-content a{color:var(--cm-violet);text-decoration:underline}.wp-block-post-content img{border-radius:0}.cm-comments{margin:45px 0 0;border-top:1px solid var(--cm-line);padding-top:30px}.cm-comments h2{font-size:25px}.cm-comments p{font-size:14px;color:#6b6275}.cm-author-summary{display:flex;align-items:flex-start;gap:25px;margin:0 0 40px}.cm-author-summary img{border-radius:50%;flex-shrink:0}.cm-author-summary h1{margin:0 0 15px}.cm-author-summary p{margin:0 0 12px;max-width:750px;font-size:15px}.cm-not-found{max-width:750px;margin:35px auto;text-align:center}.cm-not-found h1{font-size:40px}.cm-not-found form{max-width:530px;margin:28px auto}.cm-not-found .wp-block-buttons{justify-content:center}
.wp-block-search__inside-wrapper{display:flex;gap:12px}.wp-block-search__input{padding:13px 15px;background:white;border:1px solid var(--cm-line);border-radius:3px;min-width:0}.wp-block-search__button,.wp-block-button__link{border:0;background:var(--cm-plum);color:white;border-radius:3px;padding:12px 19px;font-weight:650}.wp-block-search__button:hover,.wp-block-button__link:hover{background:var(--cm-violet);color:white}.aen-contact-details{overflow-wrap:anywhere}.cm-footer{background:#f0edf4;border-top:1px solid var(--cm-line)}.cm-footer-inner{width:min(1290px,calc(100% - 60px));margin:auto;padding:26px 0;text-align:center}.cm-footer p{font-size:12px;color:#6b6275;margin:0}
@media(max-width:1100px){.cm-header-inner{gap:14px}.cm-navigation .wp-block-navigation__container{gap:12px}.cm-brand .wp-block-site-title{font-size:21px}.cm-navigation .wp-block-navigation-item__content{font-size:11px}.cm-topic-section,.cm-latest{margin-left:0!important;margin-right:0!important}.cm-home>.cm-shell>.cm-section-title{margin-left:0;margin-right:0}.cm-hero{padding-inline:0}.cm-prev{left:10px}.cm-next{right:10px}}
@media(max-width:1000px){.cm-header-inner{min-height:82px}.cm-navigation{order:3}.cm-header-search{order:2;margin-left:auto!important}.cm-navigation .wp-block-navigation__responsive-container-open{display:flex}.cm-navigation .wp-block-navigation__responsive-container:not(.is-menu-open){display:none}.cm-navigation .wp-block-navigation__responsive-container.is-menu-open{left:auto;right:0;width:min(430px,90vw);padding:25px;background:#27222fed;color:white}.cm-navigation .is-menu-open .wp-block-navigation__responsive-container-content{align-items:stretch;padding-top:45px}.cm-navigation .is-menu-open .wp-block-navigation__container{align-items:stretch;width:100%;gap:0}.cm-navigation .is-menu-open .wp-block-navigation-item{width:100%;padding:10px 0;align-items:flex-start}.cm-navigation .is-menu-open .wp-block-navigation-item__content{font-size:17px;color:white;text-align:left}.cm-navigation .is-menu-open .cm-menu-only{display:flex!important}.cm-navigation .is-menu-open .cm-menu-search{display:block!important;width:100%;margin-top:25px}.cm-navigation .wp-block-navigation__responsive-container-close{color:white}.cm-navigation .is-menu-open .wp-block-navigation-item__content:hover{color:#d5badf}.cm-latest .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))}.cm-topic-grid{gap:24px}.cm-hero .wp-block-post-template>li{flex-basis:calc((100% - 24px)/2)}}
@media(max-width:600px){.cm-header-inner{min-height:70px;width:calc(100% - 36px);gap:14px}.cm-brand .wp-block-site-title{font-size:20px}.cm-brand img{width:44px}.cm-brand{gap:7px}.cm-main{padding:30px 0 40px}.cm-shell{width:calc(100% - 36px)}.cm-home{padding-top:8px}.cm-hero .wp-block-post-template>li{flex-basis:100%}.cm-hero .wp-block-post-template{gap:20px}.cm-hero .cm-card-copy{padding:18px}.cm-hero .wp-block-post-title{font-size:17px}.cm-hero{padding-bottom:10px}.cm-prev{left:10px}.cm-next{right:10px}.cm-rail-controls>.cm-prev,.cm-rail-controls>.cm-next{width:38px;height:38px;font-size:30px}.cm-topic-section{margin-top:40px!important}.cm-section-title{font-size:23px;margin-bottom:25px}.cm-topic-grid,.cm-topic-3 .cm-topic-grid,.cm-latest .wp-block-post-template,.cm-query .wp-block-post-template{grid-template-columns:1fr;gap:25px}.cm-topic-card h3{font-size:18px}.cm-topic-card .cm-card-copy{padding:20px}.cm-home>.cm-shell>.cm-section-title{margin-top:40px;padding-top:30px}.cm-latest .cm-story .wp-block-post-title{font-size:17px}.cm-latest .cm-card-copy{padding:20px}.cm-latest .wp-block-post-excerpt{font-size:14px}.cm-story-heading{padding:25px 25px 22px}.cm-story .wp-block-post-title{font-size:20px}.cm-story-copy{padding:25px}.cm-main h1{font-size:28px;margin-bottom:28px}.cm-narrow>h1{font-size:28px;line-height:1.5;margin-bottom:22px}.cm-narrow>.cm-meta{font-size:9px;margin-bottom:30px;gap:8px 11px}.cm-meta>*+*:before{margin-right:9px}.cm-narrow>.wp-block-post-content{font-size:16px}.wp-block-post-content h2{font-size:23px}.cm-author-summary{gap:18px}.cm-author-summary img{width:60px;height:60px}.cm-author-summary h1{font-size:26px}.cm-not-found h1{font-size:34px}.cm-footer-inner{width:calc(100% - 36px);padding:22px 0}.cm-footer p{font-size:11px}.cm-search-panel{padding:30px}.cm-search-panel input{font-size:23px}}
.cm-header-search[open] summary svg{display:none}.cm-header-search[open] summary:before{content:"\00D7 ";font:30px/1 Arial,sans-serif}
@media(max-width:1000px){.cm-navigation .wp-block-navigation__responsive-container.is-menu-open{background:#27222ff5!important;color:#fff!important}.cm-navigation .is-menu-open .wp-block-navigation__container{gap:0!important;align-items:flex-start!important;align-self:stretch!important}.cm-navigation .is-menu-open .wp-block-navigation-item{align-items:flex-start!important;justify-content:flex-start!important;padding:9px 0!important}.cm-navigation .is-menu-open .wp-block-navigation-item__content{width:100%;text-align:left!important;align-self:stretch!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}


body.single-post .wp-block-post-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-collapse: collapse;
    border-spacing: 0;
    margin-block: 1.25em;
    line-height: 1.55;
}
body.single-post .wp-block-post-content table :is(th, td) {
    border: 1px solid #94a3b8;
    border-color: color-mix(in srgb, currentColor 45%, transparent);
    padding: .6em .75em;
    min-width: calc(8ch + 1.5em);
    vertical-align: top;
    text-align: start;
    overflow-wrap: normal;
    word-break: normal;
}
body.single-post .wp-block-post-content table :is(th, thead td) {
    font-weight: 700;
    background-color: color-mix(in srgb, currentColor 6%, transparent);
}
body.single-post .wp-block-post-content table :is(th, td) > :first-child { margin-block-start: 0; }
body.single-post .wp-block-post-content table :is(th, td) > :last-child { margin-block-end: 0; }
body.single-post .wp-block-post-content .wp-block-table { max-width: 100%; overflow-x: auto; }
body.single-post .wp-block-post-content :is(ul, ol):not(.wp-block-post-template):not(.wp-block-navigation__container) {
    padding-inline-start: 1.65em;
    margin-block: 1em;
    list-style-position: outside;
}
body.single-post .wp-block-post-content ul:not(.wp-block-post-template):not(.wp-block-navigation__container) { list-style-type: disc; }
body.single-post .wp-block-post-content ol:not([type]) { list-style-type: decimal; }
body.single-post .wp-block-post-content ul:not(.wp-block-post-template):not(.wp-block-navigation__container) ul { list-style-type: circle; }
body.single-post .wp-block-post-content ul:not(.wp-block-post-template):not(.wp-block-navigation__container) ul ul { list-style-type: square; }
body.single-post .wp-block-post-content :is(ul, ol):not(.wp-block-post-template):not(.wp-block-navigation__container) > li {
    display: list-item;
    margin-block: .35em;
    padding-inline-start: .15em;
}
body.single-post .wp-block-post-content :is(ul, ol):not(.wp-block-post-template):not(.wp-block-navigation__container) li > :is(ul, ol) { margin-block: .35em; }
body.single-post .wp-block-post-content li > p { margin-block: .35em; }
body.single-post .wp-block-post-content blockquote {
    margin-inline: 0;
    padding-inline: 1em;
    border-inline-start: 3px solid currentColor;
}
body.single-post .wp-block-post-content img:is(.emoji, .wp-smiley) {
    display: inline !important;
    width: 1em !important;
    height: 1em !important;
    min-width: 0 !important;
    max-width: 1em !important;
    margin: 0 .07em !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    vertical-align: -.1em;
    object-fit: contain;
}

.aen-static-map{max-width:800px;margin:1.5rem 0}.aen-static-map-image{display:block;width:100%;height:auto}.aen-static-map figcaption{font-size:.75rem;line-height:1.5}.aen-contact-address{overflow-wrap:anywhere}

/* Live contact details: independent cards, never embedded between form fields. */
.aen-contact-panel{margin:1.5rem 0;max-width:900px}.aen-contact-panel header{margin-bottom:1.5rem}.aen-contact-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem;margin:0}.aen-contact-cards>div{border:1px solid currentColor;border-color:color-mix(in srgb,currentColor 22%,transparent);padding:1.25rem;border-radius:6px}.aen-contact-cards dt{font-size:.85em;font-weight:700;margin-bottom:.5rem}.aen-contact-cards dd{margin:0;overflow-wrap:anywhere}.aen-contact-panel .aen-static-map{width:100%;max-width:100%;margin:0}
.aen-contact-cards>div{min-width:0}.aen-feed-link p{margin-top:0}.aen-feed-link a{display:inline-block;min-height:44px;padding:.6em 0}
