/* Explicit mode colours override design defaults, never alter opacity of text. */
:root { --dgm-active-text:var(--dgm-dark-text,#f3f8ff); --dgm-active-muted:var(--dgm-dark-muted,#9eb0c8); }
html[data-dgm-theme="light"] { --dgm-active-text:var(--dgm-light-text,#10253a); --dgm-active-muted:var(--dgm-light-muted,#506b80); }
.has-dgm-dark-text,.has-dgm-light-text { --dgm-context-text:initial; }
html:not([data-dgm-theme="light"]) .has-dgm-dark-text { --dgm-context-text:var(--dgm-block-dark-text); color:var(--dgm-block-dark-text)!important; }
html[data-dgm-theme="light"] .has-dgm-light-text { --dgm-context-text:var(--dgm-block-light-text); color:var(--dgm-block-light-text)!important; }
:is(.has-dgm-dark-text,.has-dgm-light-text) :where(h1,h2,h3,h4,h5,h6,p,li,summary,a,blockquote):not(.has-text-color):not(.has-text-color *):not([style*="color:"]):not(.dgm-gradient-text) { color:var(--dgm-context-text,inherit)!important; }
html:not([data-dgm-theme="light"]) .has-dgm-dark-background { --dgm-block-surface-color:var(--dgm-block-dark-background); background:var(--dgm-block-dark-background)!important; }
html[data-dgm-theme="light"] .has-dgm-light-background { --dgm-block-surface-color:var(--dgm-block-light-background); background:var(--dgm-block-light-background)!important; }
html:not([data-dgm-theme="light"]) .has-dgm-dark-background.has-dgm-surface-controls,
html[data-dgm-theme="light"] .has-dgm-light-background.has-dgm-surface-controls { background:color-mix(in srgb,var(--dgm-block-surface-color) var(--dgm-block-surface-opacity,75%),transparent)!important; }
html:not([data-dgm-theme="light"]) .wp-block-button.has-dgm-dark-background>.wp-block-button__link,
html[data-dgm-theme="light"] .wp-block-button.has-dgm-light-background>.wp-block-button__link { background:transparent!important; }
/* Native inline colours and presets on children remain intentional overrides. */
