/* Light theme only. Resolve legacy local paints to the two existing section tones. */
html:root[data-website-theme="light"] {
  --page:var(--zone-base);
  --panel:var(--zone-contrast);
}
html[data-website-theme="light"] body.is-immersive-home {
  --hero-bg:var(--zone-base);
  --page:var(--zone-base);
  --panel:var(--zone-contrast);
}
html[data-website-theme="light"] body,
html[data-website-theme="light"] body>.site-header,
html[data-website-theme="light"] body>.site-header~#main {
  background:var(--zone-base);
}
html[data-website-theme="light"] body>.site-header~#main>.page-top,
html[data-website-theme="light"] body>.site-header~#main>.section,
html[data-website-theme="light"] body>.site-header~#main>.product-carousel-v17,
html[data-website-theme="light"] body>.site-header~#main>.course-list,
html[data-website-theme="light"] body>.site-header~#main>.contact-layout,
html[data-website-theme="light"] body>.site-footer {
  background:var(--section-surface,var(--zone-base));
}
html[data-website-theme="light"] body>.site-header~#main .ft-tool-page {
  --page:var(--zone-base);
  --panel:var(--zone-contrast);
}

/* LINEAMENT sets its theme on its React wrapper, not the document element. */
html .public-brand.immersive-shell[data-theme="light"] {
  --paper:var(--zone-base);
  --surface:var(--zone-base);
  --stage-gradient:var(--zone-base);
  background:var(--zone-base);
}
html .public-brand[data-theme="light"] .public-header,
html .public-brand[data-theme="light"] .public-section-nav,
html .public-brand[data-theme="light"] .public-mobile-menu-panel,
html .public-brand[data-theme="light"] .public-dialog,
html .public-brand[data-theme="light"] .product-kv-hero {
  background:var(--zone-base);
}
html .public-brand[data-theme="light"] .topic-stage,
html .public-brand[data-theme="light"] .public-section,
html .public-brand[data-theme="light"] .public-footer {
  background:var(--section-surface,var(--zone-base));
}
html .public-brand[data-theme="light"] .topic-stage .topic-carousel {
  --tc-panel:var(--zone-base);
  background:transparent;
}
html .public-brand[data-theme="light"] .topic-stage .product-topic-section {
  background:transparent;
}
html .public-brand[data-theme="light"] .topic-stage .ps-navigation,
html .public-brand[data-theme="light"] .topic-stage .tc-theme-list button[aria-pressed="true"] {
  background:var(--zone-base);
}
html .public-brand[data-theme="light"] .public-related-links>a,
html .public-brand[data-theme="light"] .model-detail {
  background:var(--zone-base);
}
html .public-brand[data-theme="light"] .public-related-links>a:hover,
html .public-brand[data-theme="light"] .public-related-links>a:focus-visible,
html .public-brand[data-theme="light"] .model-list button.selected {
  background:var(--zone-contrast);
}
html .public-brand[data-theme="light"] .model-explorer {
  --mx-panel:var(--zone-contrast);
}

/* YOUTHNATURE uses the root theme attribute. Preserve the actual media/light layers. */
html:root[data-theme="light"] {
  --paper:var(--zone-base);
  --surface:var(--zone-contrast);
}
html[data-theme="light"] body,
html[data-theme="light"] body>.brand-header,
html[data-theme="light"] body>.section-nav,
html[data-theme="light"] body>.page-footer,
html[data-theme="light"] #yanzitai-hero,
html[data-theme="light"] #yanzitai-hero .hero-environment,
html[data-theme="light"] .media-dialog {
  background:var(--zone-base);
}
html[data-theme="light"] #yanzitai-structure,
html[data-theme="light"] #yanzitai-composition,
html[data-theme="light"] #yanzitai-product,
html[data-theme="light"] #yanzitai-research,
html[data-theme="light"] #yanzitai-support {
  background:var(--section-surface,var(--zone-base));
}
html[data-theme="light"] .gallery-frame,
html[data-theme="light"] .pack-image-button,
html[data-theme="light"] .pack-image-button[data-pack="dark"],
html[data-theme="light"] .pack-image-button[data-pack="group"],
html[data-theme="light"] .icon-button {
  background:var(--zone-contrast);
}
html[data-theme="light"] .motion-toggle {
  background:var(--zone-base);
}
