.wc-hero-options{margin:16px 0;padding:16px;border:1px solid #d4d9df;border-radius:12px;background:#fff;color:#17202a;min-width:0}.wc-hero-options legend{font-weight:800;padding:0 8px}.wc-hero-inherit{display:flex;gap:8px;align-items:center;margin:0 0 14px}.wc-hero-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.wc-hero-option{display:grid;grid-template-columns:auto 32px 1fr;gap:8px;padding:14px;border:1px solid #d4d9df;border-radius:10px;cursor:pointer;align-items:center}.wc-hero-option>span{font:700 28px/1 system-ui;text-align:center}.wc-hero-option small{grid-column:1/-1;line-height:1.45;color:#566270}.wc-hero-option:has(input:checked){border-color:var(--ap-accent,#397451);background:#eef7ef}.wc-hero-option.is-unavailable{opacity:.45;cursor:default}.wc-hero-option-help{font-size:12px;line-height:1.5;margin:12px 0 0;color:#566270}@media(max-width:650px){.wc-hero-option-grid{grid-template-columns:1fr}}
html body.ap-client .ap-news-detail-hero.wc-hero-parallax .wc-hero-motion-image,html body.ap-client .ap-content-block-card.wc-hero-parallax .wc-hero-motion-image,html body.ap-client .ap-index-hero.wc-hero-parallax .wc-hero-motion-image{transform:translate3d(0,var(--wc-hero-y,0px),0) scale(1.32)!important;animation:none!important;will-change:transform}
.wc-hero-animation:not(.wc-hero-animate-in) :is(.wc-hero-title,.wc-hero-subtitle,.wc-hero-action){opacity:0}
.wc-hero-animate-in .wc-hero-title{animation:wcHeroTextIn .8s cubic-bezier(.2,.7,.2,1) both!important}
.wc-hero-animate-in .wc-hero-subtitle{animation:wcHeroTextIn .8s .14s cubic-bezier(.2,.7,.2,1) both!important}
.wc-hero-animate-in .wc-hero-action{animation:wcHeroTextIn .8s .28s cubic-bezier(.2,.7,.2,1) both!important}
@keyframes wcHeroTextIn{from{opacity:0;transform:translate3d(0,24px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@media(prefers-reduced-motion:reduce){html body.ap-client .ap-news-detail-hero.wc-hero-parallax .wc-hero-motion-image,html body.ap-client .ap-content-block-card.wc-hero-parallax .wc-hero-motion-image,html body.ap-client .ap-index-hero.wc-hero-parallax .wc-hero-motion-image{transform:none!important;animation:none!important}.wc-hero-animation :is(.wc-hero-title,.wc-hero-subtitle,.wc-hero-action){opacity:1!important;transform:none!important;animation:none!important}}

/* Admin controls keep their own contrast, including inside the dark theme. */
html body .wc-hero-options{background:var(--ap-admin-panel,#131f2d)!important;border-color:var(--ap-admin-line,#365368)!important;color:var(--ap-admin-text,#edf2fa)!important}
html body .wc-hero-options :is(legend,label,strong,span,small,p){color:var(--ap-admin-text,#edf2fa)!important}
html body .wc-hero-options .wc-hero-option{background:transparent!important;border-color:var(--ap-admin-line,#365368)!important}
html body .wc-hero-options .wc-hero-option:has(input:checked){background:color-mix(in srgb,var(--ap-accent,#bd24b0) 15%,var(--ap-admin-panel,#131f2d))!important;border-color:var(--ap-accent,#bd24b0)!important}
html body .ap-page-hero-tone-panel{background:var(--ap-admin-panel,#131f2d)!important;color:var(--ap-admin-text,#edf2fa)!important}
html body .ap-page-hero-tone-panel label{background:var(--ap-admin-panel,#131f2d)!important;color:var(--ap-admin-text,#edf2fa)!important}
html body .ap-page-hero-tone-panel :is(strong,span){color:var(--ap-admin-text,#edf2fa)!important}
html body summary.wc-admin-step{display:flex;align-items:center;gap:14px}
html body .wc-admin-step-num{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#a324a4;border:1px solid #ed29db;color:#fff!important;font-weight:800}
@media(max-width:760px){html body .ap-page-hero-tone-panel{grid-template-columns:auto 1fr!important}html body .ap-page-hero-tone-panel>div:nth-of-type(2){grid-column:1/-1}}

html body.ap-body.ap-admin :is(.ap-news-admin-scope,.ap-admin-setup-page) .ap-acc-body :is(.wc-hero-options,.ap-page-hero-tone-panel){background:var(--ap-admin-panel,#131f2d)!important;color:var(--ap-admin-text,#edf3fb)!important}
html body .wc-hero-shape-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;padding:18px 0;margin-top:16px;border-top:1px solid var(--ap-admin-line,#365368)}
html body .wc-hero-shape-controls label{display:grid;gap:9px;align-content:start;font-size:14px;font-weight:700}
html body .wc-hero-shape-controls select{width:100%;min-height:42px;padding:8px;background:var(--ap-admin-panel,#131f2d);color:var(--ap-admin-text,#edf2fa);border:1px solid var(--ap-admin-line,#365368)}
html body .wc-hero-shape-controls input[type=range]{width:100%;min-height:32px}
html body .wc-hero-shape-controls small{font-size:12px;font-weight:400;line-height:1.5}

/* Shared editorial bounds: backgrounds may bleed, text belongs to the page. */
html:root body.ap-client{--wc-hero-content-width:min(1220px,calc(100vw - 44px));--wc-hero-gutter:max(22px,calc((100vw - 1220px)/2))}
html:root body.ap-client .ap-news-detail-hero:not(.ap-auto-hero-split) .ap-hero-inner,
html:root body.ap-client .ap-index-hero .ap-hero-inner{width:var(--wc-hero-content-width)!important;max-width:100%!important;margin-inline:auto!important;box-sizing:border-box!important}
html:root body.ap-client .ap-news-hero-visual .ap-news-hero-content{width:min(760px,var(--wc-hero-content-width))!important;max-width:var(--wc-hero-content-width)!important;margin-left:var(--wc-hero-gutter)!important;margin-right:auto!important}
@media(min-width:1264px){html:root body.ap-client .ap-news-detail-hero.ap-auto-hero-split .ap-auto-hero-content{padding-right:var(--wc-hero-gutter)!important}}
html:root body.ap-client [data-hero-align="left"] :is(.ap-hero-inner,.ap-auto-hero-content,.ap-news-hero-content,.wc-hero-content-container){text-align:left!important}
html:root body.ap-client [data-hero-align="center"] :is(.ap-hero-inner,.ap-auto-hero-content,.ap-news-hero-content,.wc-hero-content-container){text-align:center!important}
html:root body.ap-client [data-hero-align="right"] :is(.ap-hero-inner,.ap-auto-hero-content,.ap-news-hero-content,.wc-hero-content-container){text-align:right!important}
html:root body.ap-client .ap-news-hero-visual[data-hero-align="right"] .ap-news-hero-content{margin-left:auto!important;margin-right:var(--wc-hero-gutter)!important}
html:root body.ap-client .ap-news-hero-visual[data-hero-align="center"] .ap-news-hero-content{margin-inline:auto!important}
html:root body.ap-client [data-hero-align="center"] .ap-hero-actions{justify-content:center!important}
html:root body.ap-client [data-hero-align="right"] .ap-hero-actions{justify-content:flex-end!important}
.wc-hero-position-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0}.wc-hero-position-controls label{display:grid;gap:7px}
html body.ap-client .wc-mini-hero{position:relative;isolation:isolate;box-sizing:border-box;display:grid;align-content:center;min-height:160px;padding:32px 0;overflow:hidden;background:var(--wc-mini-color,var(--ap-section-dark,#233e43));color:var(--ap-section-dark-text,#fff)}
html body.ap-client .wc-mini--full{width:100vw;max-width:none;margin-inline:calc(50% - 50vw)}
html body.ap-client .wc-mini--boxed{width:min(1264px,100vw);max-width:none;margin-inline:calc((100% - min(1264px,100vw))/2);border-radius:12px}
html body.ap-client .wc-mini--image:has(img){color:#fff}
html body.ap-client .wc-mini-image{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
html body.ap-client .wc-mini--image:has(img)::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(0,0,0,.5)}
html body.ap-client .wc-hero-content-container{width:var(--wc-hero-content-width);max-width:calc(100% - 44px);margin-inline:auto}
html body.ap-client .wc-mini-hero h1{margin:0;font-size:clamp(28px,3vw,40px);line-height:1.12;text-shadow:none;color:inherit}
html body.ap-client .wc-mini-hero p{margin:12px 0 0;font-size:16px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:720px){html body.ap-client .wc-mini-hero{min-height:130px;padding:24px 0}}
/* Position both the text and flex children; legacy headings had their own alignment. */
html:root body.ap-client [data-hero-align="left"] :is(.ap-news-hero-heading,.ap-hero-title,.ap-hero-sub,.hn-copy){text-align:left!important}
html:root body.ap-client [data-hero-align="center"] :is(.ap-news-hero-heading,.ap-hero-title,.ap-hero-sub,.hn-copy){text-align:center!important}
html:root body.ap-client [data-hero-align="right"] :is(.ap-news-hero-heading,.ap-hero-title,.ap-hero-sub,.hn-copy){text-align:right!important}
html:root body.ap-client :is(.ap-home-hero2-inner,.hn-copy){width:var(--wc-hero-content-width)!important;max-width:100%!important;margin-inline:auto!important;padding-inline:0!important;box-sizing:border-box!important}
html:root body.ap-client .wc-mini--gradient{background:linear-gradient(115deg,var(--wc-mini-color,var(--ap-section-dark,#233e43)),color-mix(in srgb,var(--ap-accent,#8d7548) 72%,#fff))}
html:root body.ap-client .ap-news-detail-hero[data-hero-align="left"] .ap-auto-hero-content{align-items:flex-start!important}
html:root body.ap-client .ap-news-detail-hero[data-hero-align="center"] .ap-auto-hero-content{align-items:center!important}
html:root body.ap-client .ap-news-detail-hero[data-hero-align="right"] .ap-auto-hero-content{align-items:flex-end!important}
@media(min-width:901px){html:root body.ap-client .ap-news-detail-hero.ap-auto-hero-split:not(.ap-hero-parallax) .ap-auto-hero-title{font-size:clamp(32px,4vw,64px)!important}}
/* Full-image Classic and slider heroes use the same bounds as their page sections. */
html:root body.ap-client .ap-main>header.ap-news-detail-hero.ap-auto-hero-split.ap-hero-parallax .ap-hero-inner.ap-news-hero-content,
html:root body.ap-client .ap-main>header.ap-news-detail-hero.ap-news-hero-slider .ap-hero-inner.ap-news-hero-content{width:var(--wc-hero-content-width)!important;max-width:var(--wc-hero-content-width)!important;margin-inline:auto!important;padding-inline:0!important;box-sizing:border-box!important}
html:root body.ap-client .ap-news-detail-hero[data-hero-align="left"] .ap-news-hero-heading{align-items:flex-start!important}
html:root body.ap-client .ap-news-detail-hero[data-hero-align="center"] .ap-news-hero-heading{align-items:center!important}
html:root body.ap-client .ap-news-detail-hero[data-hero-align="right"] .ap-news-hero-heading{align-items:flex-end!important}
/* Compatibility with Atelier's existing high-specificity hero rule. */
html:root body.ap-client.ap-client.ap-client.ap-client.ap-home-atelier .ap-main .ap-hero.ap-news-detail-hero.ap-hero-parallax .ap-hero-inner.ap-news-hero-content{width:var(--wc-hero-content-width)!important;max-width:var(--wc-hero-content-width)!important;margin-inline:auto!important;padding-inline:0!important;left:auto!important;right:auto!important;transform:none!important;justify-self:center!important}
