/* DS 0.20.0: the approved public palette, independent of browser previews.
   Cards, primary buttons, typography and the existing header keep their defaults. */
body.ds-choice,
body.ds-choice[data-series] {
 --bg:#f6f0e5;
 --paper:#f6f0e5;
 --soft:#eae0ce;
 --sand:#eae0ce;
 --ds020-footer-bg:#303331;
 --ds020-footer-ink:#f6f0e5;
 --ds020-footer-line:rgba(246,240,229,.26);
}

/* These are the existing colour picker's block surfaces, including the form
   and generated pages. They also receive the new default without JavaScript.
   Picker overrides and the existing alternating product bands have higher
   specificity, so their selected colours and section rhythm remain effective. */
body.ds-choice main :is(
 .hy-usps,.hy-messages,.hy-comfort,.hy-advice,.hy-code-panel,
 .contact-section,.statement,.projects-section,.editorial-detail-section,
 .af110-source-block,.dsgen-section,.ds202-quote,.ds202-quote>summary,
 .ds202-quote-panel,.ds202-quote-unavailable
) {
 background-color:var(--soft)!important;
}

/* The footer owns its dark surface. Do not darken --deep or --surface across
   the site: those tokens are also used by unrelated components and cards. */
body.ds-choice .site-footer {
 --ink:var(--ds020-footer-ink);
 --muted:var(--ds020-footer-ink);
 --line:var(--ds020-footer-line);
 --ds160-soft-line:var(--ds020-footer-line);
 background-color:var(--ds020-footer-bg);
 color:var(--ds020-footer-ink);
 border-color:var(--ds020-footer-line);
}
body.ds-choice .site-footer :is(.footer-top,.footer-bottom) {
 border-color:var(--ds020-footer-line);
}
body.ds-choice .site-footer .footer-top .logo img {
 filter:brightness(0) invert(1);
}
body.ds-choice .site-footer :focus-visible {
 outline:2px solid var(--ds020-footer-ink);
 outline-offset:4px;
}

/* Preserve every explicit saved preview. Footer focus and inherited text also
   follow its contrast-aware ink; the existing picker handles the logo filter. */
body.ds-choice[data-dsc-has-footer] .site-footer {
 --ds020-footer-bg:var(--dsc-footer);
 --ds020-footer-ink:var(--dsc-footer-ink);
 --ds020-footer-line:var(--dsc-footer-line);
}
