/* Shared appearance: style-owned corrections only, strictly opt-in. */
body.hh-unified-colours .hh-theme-content :where(h2,h3,h4),
body.hh-unified-colours .hh-content-presentation-reading :where(h2,h3,h4),
body.hh-unified-colours .hh-content-card> :where(h2,h3,h4){color:var(--hh-heading)}
body.hh-unified-colours .hh-content-card{color:var(--hh-text)}
body.hh-unified-colours .hh-brand-link{color:var(--hh-header-dark-text)}
body.hh-unified-colours .hh-header-style-light .hh-brand-link{color:var(--hh-header-light-text)}
body.hh-unified-colours .hh-page-hero .hh-eyebrow{color:var(--hh-hero-eyebrow)}
body.hh-unified-colours .hh-site-footer{color:var(--hh-footer-text)}
body.hh-unified-colours .hh-page-hero :where(.hh-page-title,.hh-page-intro){color:var(--hh-hero-text)}
body.hh-unified-colours .hh-page-hero .hh-page-intro{color:var(--hh-hero-muted)}
@media(max-width:1023px){
 body.hh-unified-colours .hh-site-header .hh-mobile-nav-intro,
 body.hh-unified-colours .hh-site-header .hh-nav-close{background:var(--hh-drawer-bg);color:var(--hh-drawer-text)}
 body.hh-unified-colours .hh-site-header .hh-primary-nav{background:var(--hh-drawer-bg);color:var(--hh-drawer-text)}
 body.hh-unified-colours .hh-site-header .hh-primary-nav :where(a,.hh-submenu-toggle){color:var(--hh-drawer-text)}
 body.hh-unified-colours .hh-site-header .hh-primary-nav a:hover,
 body.hh-unified-colours .hh-site-header .hh-primary-nav a:focus-visible{background:var(--hh-nav-hover-bg);color:var(--hh-nav-hover-text)}
}

/* Optional surface-depth pass. No plugin selectors or layout changes. */
body.hh-unified-colours.hh-surface-depth .hh-content-card:not(.hh-content-plain):not(.hh-content-presentation-application),
body.hh-unified-colours.hh-surface-depth .hh-card{
  border-color:var(--hh-card-border,var(--hh-border));
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

/* Phase 3 foundation: text follows theme-owned surfaces, not the body canvas.
 * These are additive semantic pairings only. No structure or plugin components.
 * All values already participate in the saved Colour Studio contrast pass. */
body.hh-unified-colours .hh-content-card:not(.hh-content-plain):not(.hh-content-presentation-application),
body.hh-unified-colours .hh-card {
  background:var(--hh-card-bg);
  color:var(--hh-text);
  border-color:var(--hh-card-border);
}
body.hh-unified-colours .hh-card__footer {
  background:var(--hh-card-footer-bg);
  color:var(--hh-card-footer-text,var(--hh-text));
}
body.hh-unified-colours .hh-alert:not(.hh-alert--success):not(.hh-alert--warning):not(.hh-alert--promo) {
  background:var(--hh-cta-alert-bg);
  color:var(--hh-cta-alert-text);
  border-color:var(--hh-card-border);
  border-left-color:var(--hh-cta-alert-accent);
}
