/* DEPANTERO color themes. Scoped CSS preserves media and Gutenberg canvas colors. */
/* White/light third-party surfaces keep dark text; no background inversion. */
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] #wpbody-content [data-dpc-contrast="preserve"]{color:var(--dpc-contrast-original)!important}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] #wpbody-content [data-dpc-contrast="text"]{color:#1d2327!important}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] #wpbody-content [data-dpc-contrast="link"]{color:#135e96!important}
.dpc-theme-control{--dpc-control-bg:#fff;--dpc-control-text:#18263b;--dpc-control-border:#cbd5e1;display:inline-flex;align-items:center;gap:0;border:1px solid var(--dpc-control-border);border-radius:999px;background:var(--dpc-control-bg);box-shadow:0 4px 20px #0002;color:var(--dpc-control-text);font:14px/1.4 system-ui,sans-serif;isolation:isolate}
.dpc-theme-control button[data-dpc-theme-toggle]{display:inline-flex;align-items:center;gap:8px;min-width:44px;min-height:44px;padding:9px 14px;background:transparent!important;border:0!important;border-radius:999px;color:var(--dpc-control-text)!important;font:inherit;cursor:pointer;box-shadow:none}
.dpc-theme-control [data-dpc-theme-icon]{font-size:23px;line-height:1}.dpc-theme-control select[data-dpc-theme-select]{font:inherit;color:var(--dpc-control-text)!important;background:var(--dpc-control-bg)!important;border:0!important;border-left:1px solid var(--dpc-control-border)!important;border-radius:0 24px 24px 0!important;max-width:118px;padding:8px;min-height:40px;cursor:pointer}
.dpc-theme-control :is(button,select):focus-visible{outline:3px solid #78aaff!important;outline-offset:3px}
.dpc-theme-floating{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));z-index:99990}.dpc-theme-right{right:max(20px,env(safe-area-inset-right))}.dpc-theme-left{left:max(20px,env(safe-area-inset-left))}.dpc-theme-round .dpc-theme-caption{display:none}
html[data-dpc-theme="dark"]{color-scheme:dark;--dpc-control-bg:var(--dpc-theme-surface,#182438);--dpc-control-text:var(--dpc-theme-text,#e7eef8);--dpc-control-border:var(--dpc-theme-border,#34445c)}
html[data-dpc-theme="dark"] .dpc-theme-control{--dpc-control-bg:var(--dpc-theme-surface,#182438);--dpc-control-text:var(--dpc-theme-text,#e7eef8);--dpc-control-border:var(--dpc-theme-border,#34445c)}
html[data-dpc-theme="light"]{color-scheme:light}
/* Explicitly scoped public-site colors; light mode otherwise uses the original theme. */
html[data-dpc-theme-scope="front"]:is([data-dpc-theme="dark"],[data-dpc-theme="light"][data-dpc-theme-custom-light="1"]){--wp--preset--color--base:var(--dpc-theme-bg);--wp--preset--color--base-2:var(--dpc-theme-surface);--wp--preset--color--contrast:var(--dpc-theme-text);--wp--preset--color--contrast-2:var(--dpc-theme-muted);background:var(--dpc-theme-bg);color:var(--dpc-theme-text)}
html[data-dpc-theme-scope="front"]:is([data-dpc-theme="dark"],[data-dpc-theme="light"][data-dpc-theme-custom-light="1"]) :is(body,#wrapper,.site,.site-main,.content-bg,.site-header,.site-footer,.site-header-row-container-inner,.site-bottom-footer-wrap,.entry,.entry-content-wrap,.main-navigation .sub-menu,.wp-block-table table,.wp-block-search__input):not(.dpc-theme-ignore,.dpc-theme-ignore *){background-color:var(--dpc-theme-bg)!important;color:var(--dpc-theme-text)!important;border-color:var(--dpc-theme-border)!important}
html[data-dpc-theme-scope="front"]:is([data-dpc-theme="dark"],[data-dpc-theme="light"][data-dpc-theme-custom-light="1"]) :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,.entry-title,.entry-summary,.entry-meta,.site-title,.site-description):not(.dpc-theme-ignore,.dpc-theme-ignore *){color:var(--dpc-theme-text)}
html[data-dpc-theme-scope="front"]:is([data-dpc-theme="dark"],[data-dpc-theme="light"][data-dpc-theme-custom-light="1"]) a:not(.wp-block-button__link,.button,.dpc-theme-ignore,.dpc-theme-ignore *){color:var(--dpc-theme-link)}
html[data-dpc-theme-scope="front"]:is([data-dpc-theme="dark"],[data-dpc-theme="light"][data-dpc-theme-custom-light="1"]) :is(input:not([type=checkbox],[type=radio],[type=submit]),textarea,select):not(.dpc-theme-ignore,.dpc-theme-ignore *){background-color:var(--dpc-theme-surface);color:var(--dpc-theme-text);border-color:var(--dpc-theme-border)}
html[data-dpc-theme-scope="front"]:is([data-dpc-theme="dark"],[data-dpc-theme="light"][data-dpc-theme-custom-light="1"]) :is(.wp-block-button__link,.button,input[type=submit]):not(.dpc-theme-ignore,.dpc-theme-ignore *){background-color:var(--dpc-theme-accent);color:var(--dpc-theme-button-text);border-color:var(--dpc-theme-accent)}
/* Gutenberg/Kadence surface helper classes for deliberately colored sections. */
html[data-dpc-theme="dark"][data-dpc-theme-scope="front"] .dpc-theme-surface:not(.dpc-theme-ignore,.dpc-theme-ignore *){background-color:var(--dpc-theme-surface)!important;color:var(--dpc-theme-text)!important}
html[data-dpc-theme="dark"][data-dpc-theme-scope="front"] .dpc-theme-background:not(.dpc-theme-ignore,.dpc-theme-ignore *){background-color:var(--dpc-theme-bg)!important;color:var(--dpc-theme-text)!important}
html[data-dpc-theme-scope="admin"] .editor-styles-wrapper{color-scheme:light}
/* Admin chrome. The editor canvas, charts, images and videos are never inverted. */
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] :is(body,#wpwrap,#wpcontent,#wpfooter):not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){background:var(--dpc-theme-bg);color:var(--dpc-theme-text)}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] :is(#wpbody-content h1,#wpbody-content h2,#wpbody-content h3,#wpbody-content h4,#wpbody-content p,#wpfooter,.description,.form-table th):not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){color:var(--dpc-theme-text)}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] :is(.postbox,.stuffbox,.card,.widefat,.widefat thead,.widefat tfoot,.wp-filter,.theme-browser .theme .theme-name,.dpc-card,.dpc-note,.dpc-log,.notice,.media-frame-content,.media-toolbar,.media-frame-title,.media-frame-menu,.media-frame-router,.media-sidebar,.interface-interface-skeleton__header,.interface-interface-skeleton__sidebar,.interface-interface-skeleton__footer,.edit-post-sidebar,.components-panel,.components-panel__body,.components-popover__content):not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){background-color:var(--dpc-theme-surface)!important;color:var(--dpc-theme-text)!important;border-color:var(--dpc-theme-border)!important}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] .striped>tbody>:nth-child(odd):not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){background-color:var(--dpc-theme-bg)}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] :is(.widefat td,.widefat th,.form-table td,.dpc-card h2,.dpc-card p,.dpc-metric,.dpc-diagnostics th,.dpc-diagnostics td,.components-panel__body-title,.components-button):not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){color:var(--dpc-theme-text);border-color:var(--dpc-theme-border)}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] #wpbody-content a:not(.button,.button-primary,.dpc-nav a):not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){color:var(--dpc-theme-link)}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] :is(input:not([type=checkbox],[type=radio],[type=submit],[type=color]),textarea,select):not(.editor-styles-wrapper *,.dpc-theme-ignore,.dpc-theme-ignore *):not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){background-color:var(--dpc-theme-bg);color:var(--dpc-theme-text);border-color:var(--dpc-theme-border)}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] :is(.button,.dpc-nav a):not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){background-color:var(--dpc-theme-surface);color:var(--dpc-theme-text);border-color:var(--dpc-theme-border)}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] :is(.button-primary,.dpc-nav a[aria-current=page]):not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){background-color:var(--dpc-theme-accent);color:var(--dpc-theme-button-text);border-color:var(--dpc-theme-accent)}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] .dpc-status:not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){background:#29384e;color:var(--dpc-theme-text)}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] .dpc-status.on:not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){background:#164d38;color:#c6f6d9}
html[data-dpc-theme="dark"][data-dpc-theme-scope="admin"] #wpadminbar:not(.editor-styles-wrapper,.editor-styles-wrapper *,.dpc-wrap,.dpc-wrap *,#dpc_dashboard,#dpc_dashboard *){background:#0c1320}
@media(prefers-reduced-motion:reduce){.dpc-theme-control *{transition:none!important}}
@media(max-width:600px){.dpc-theme-floating{bottom:12px}.dpc-theme-left{left:12px}.dpc-theme-right{right:12px}.dpc-theme-control{font-size:12px}.dpc-theme-control select[data-dpc-theme-select]{max-width:105px}}
