/* Transitional presentation bridge for legacy Cornerstone editorial content.
 * Scoped to Cornerstone body classes so native Site applications are untouched. */
html[data-theme="dark"] body[class*="cornerstone-"] .labs-entry-content,
html[data-theme="dark"] body[class*="cornerstone-"] .entry-content {
  color: var(--labs-text);
}
html[data-theme="dark"] body[class*="cornerstone-"] .labs-entry-content :where(p, li, dt, dd, td, th, figcaption),
html[data-theme="dark"] body[class*="cornerstone-"] .entry-content :where(p, li, dt, dd, td, th, figcaption) {
  color: var(--labs-text) !important;
}
html[data-theme="dark"] body[class*="cornerstone-"] .labs-entry-content :where(h1,h2,h3,h4,h5,h6),
html[data-theme="dark"] body[class*="cornerstone-"] .entry-content :where(h1,h2,h3,h4,h5,h6) {
  color: var(--labs-heading) !important;
}
html[data-theme="dark"] body[class*="cornerstone-"] .labs-entry-content a:not(.x-btn):not([class*="button"]),
html[data-theme="dark"] body[class*="cornerstone-"] .entry-content a:not(.x-btn):not([class*="button"]) {
  color: var(--labs-link) !important;
}
html[data-theme="dark"] body[class*="cornerstone-"] .labs-entry-content :where(table, td, th),
html[data-theme="dark"] body[class*="cornerstone-"] .entry-content :where(table, td, th) {
  border-color: var(--labs-border) !important;
}

/* Older Cornerstone text elements sometimes carry their colour on the wrapper
   rather than on a paragraph. Keep this bridge deliberately text-only. */
html[data-theme="dark"] body[class*="cornerstone-"] .labs-entry-content :where(.x-text, .x-text-content, .x-feature-box-text, .x-raw-content),
html[data-theme="dark"] body[class*="cornerstone-"] .entry-content :where(.x-text, .x-text-content, .x-feature-box-text, .x-raw-content) {
  color: var(--labs-text) !important;
}
