html:root body.ap-client :is(.ap-section-light,.ap-tone-light,.ap-pack-section-n):not(.ap-content-block-section),
html:root body.ap-client .ap-pack-article>.ap-pack-section:nth-of-type(odd):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1),
html:root body.ap-client .ap-news-detail-body>section:nth-of-type(odd):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1){--ap-accent:var(--ap-accent-light);--ap-accent-text:var(--ap-accent-light-text);color:var(--ap-section-light-text)!important}
html:root body.ap-client :is(.ap-section-light,.ap-tone-light,.ap-pack-section-n):not(.ap-content-block-section) :is(h1,h2,h3,.ap-tile-title),
html:root body.ap-client .ap-pack-article>.ap-pack-section:nth-of-type(odd):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1) :is(h1,h2,h3,.ap-tile-title),
html:root body.ap-client .ap-news-detail-body>section:nth-of-type(odd):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1) :is(h1,h2,h3,.ap-tile-title){color:var(--ap-section-light-title)!important}
html:root body.ap-client :is(.ap-section-light,.ap-tone-light,.ap-pack-section-n):not(.ap-content-block-section) :is(p,li,small,.ap-prose,.ap-muted),
html:root body.ap-client .ap-pack-article>.ap-pack-section:nth-of-type(odd):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1) :is(p,li,small,.ap-prose,.ap-muted),
html:root body.ap-client .ap-news-detail-body>section:nth-of-type(odd):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1) :is(p,li,small,.ap-prose,.ap-muted){color:var(--ap-section-light-text)!important}
html:root body.ap-client :is(.ap-section-dark,.ap-tone-dark,.ap-pack-section-n1):not(.ap-content-block-section),
html:root body.ap-client .ap-pack-article>.ap-pack-section:nth-of-type(even):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1),
html:root body.ap-client .ap-news-detail-body>section:nth-of-type(even):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1){--ap-accent:var(--ap-accent-dark);--ap-accent-text:var(--ap-accent-dark-text);color:var(--ap-section-dark-text)!important}
html:root body.ap-client :is(.ap-section-dark,.ap-tone-dark,.ap-pack-section-n1):not(.ap-content-block-section) :is(h1,h2,h3,.ap-tile-title),
html:root body.ap-client .ap-pack-article>.ap-pack-section:nth-of-type(even):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1) :is(h1,h2,h3,.ap-tile-title),
html:root body.ap-client .ap-news-detail-body>section:nth-of-type(even):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1) :is(h1,h2,h3,.ap-tile-title){color:var(--ap-section-dark-title)!important}
html:root body.ap-client :is(.ap-section-dark,.ap-tone-dark,.ap-pack-section-n1):not(.ap-content-block-section) :is(p,li,small,.ap-prose,.ap-muted),
html:root body.ap-client .ap-pack-article>.ap-pack-section:nth-of-type(even):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1) :is(p,li,small,.ap-prose,.ap-muted),
html:root body.ap-client .ap-news-detail-body>section:nth-of-type(even):not(.ap-content-block-section):not(.ap-pack-section-n):not(.ap-pack-section-n1) :is(p,li,small,.ap-prose,.ap-muted){color:var(--ap-section-dark-text)!important}
html:root body.ap-client .ap-content-block-section:has(>.ap-pack-inner>.ap-content-block-card.is-light),html:root body.ap-client .ap-content-contact-section.is-light{--ap-accent:var(--ap-accent-light);--ap-accent-text:var(--ap-accent-light-text)}
html:root body.ap-client .ap-content-block-section:has(>.ap-pack-inner>.ap-content-block-card.is-dark),html:root body.ap-client .ap-content-contact-section.is-dark{--ap-accent:var(--ap-accent-dark);--ap-accent-text:var(--ap-accent-dark-text)}
html:root body.ap-client .ap-content-block-section:has(>.ap-pack-inner>.ap-content-block-card.is-accent),html:root body.ap-client .ap-content-contact-section.is-accent{--ap-accent:var(--ap-accent-dark);--ap-accent-text:var(--ap-accent-dark-text)}

/* Designer controls: explicit section buttons and independent footer. */
html:root body.ap-client :is(.ap-section-light,.ap-tone-light,.ap-pack-section-n){--ap-btn-bg:var(--ap-accent-light);--ap-btn-text:var(--ap-accent-light-text)}
html:root body.ap-client :is(.ap-section-dark,.ap-tone-dark,.ap-pack-section-n1),html:root body.ap-client .ap-content-block-section:has(>.ap-pack-inner>.ap-content-block-card.is-dark),html:root body.ap-client .ap-content-contact-section.is-dark{--ap-btn-bg:var(--ap-accent-dark);--ap-btn-text:var(--ap-accent-dark-text)}
html:root body.ap-client .ap-btn:not(.ap-btn-ghost):not(.ap-btn--ghost):not(.ap-btn-danger){background:var(--ap-btn-bg,var(--ap-accent-light))!important;color:var(--ap-btn-text,var(--ap-accent-light-text))!important;border-color:var(--ap-btn-bg,var(--ap-accent-light))!important}
html:root body.ap-client .ap-site-footer{background:var(--ap-footer-bg)!important;color:var(--ap-footer-text)!important}
html:root body.ap-client .ap-site-footer :is(p,a,span,small,h2,h3,.ap-footer-meta){color:var(--ap-footer-text)!important}

/* Keep footer and bottom-of-page tags on their declared, unmixed surfaces. */
html:root body.ap-client .ap-site-footer :is(.ap-muted,.ap-site-footer-title,.ap-site-footer-desc,.ap-site-footer-address,.ap-site-footer-contact,.ap-site-footer-social,.ap-site-footer-trust,.ap-site-footer-bottom,.ap-site-footer-credit){color:var(--ap-footer-text)!important;opacity:1!important}
html:root body.ap-client .ap-site-footer a{color:var(--ap-footer-text)!important;background:transparent!important;opacity:1!important;display:inline-flex;align-items:center;min-height:44px;padding:6px 4px;line-height:1.5}
html:root body.ap-client .ap-site-footer a:is(:hover,:focus-visible){color:var(--ap-footer-text)!important;text-decoration:underline;text-underline-offset:3px}
html:root body.ap-client .ap-site-footer a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
html:root body.ap-client :is(.ap-knowledge-fact,.ap-knowledge-seealso-link){background:var(--ap-section-dark)!important;color:var(--ap-section-dark-text)!important;opacity:1!important}
html:root body.ap-client :is(.ap-knowledge-fact,.ap-knowledge-seealso-link) :is(span,b,strong,small){color:inherit!important;opacity:1!important}
html:root body.ap-client .ap-knowledge-fact .ap-knowledge-fact-icon{color:var(--ap-accent-dark-text)!important;background:var(--ap-accent-dark)!important}
