/* Elementor bridge: opt-in semantic tokens preserve custom brand colours. */
html[data-pil-app-appearance] body .elementor .pil-adaptive-surface{--e-global-color-text:var(--pil-ink);--e-global-color-secondary:var(--pil-muted);--e-global-color-primary:var(--pil-link);--e-global-color-accent:var(--pil-link)}
/* Opt in on intentionally theme-adaptive Elementor containers. Keep photographic and branded panels intact. */
html[data-pil-app-appearance] body .elementor .pil-adaptive-surface{background:var(--pil-paper)!important;color:var(--pil-ink)!important}
html[data-pil-app-appearance] body .elementor .pil-adaptive-surface :is(.elementor-heading-title,.elementor-widget-text-editor,.elementor-icon-list-text,.elementor-tab-title,.elementor-tab-content,.e-n-tab-title,.e-n-accordion-item-title){color:var(--pil-ink)!important;-webkit-text-fill-color:currentColor!important}
html[data-pil-app-appearance] body .elementor .pil-adaptive-surface .elementor-widget-text-editor :is(p,li,strong,em,span){color:inherit!important;-webkit-text-fill-color:currentColor!important}
html[data-pil-app-appearance] body .elementor .pil-adaptive-surface .elementor-widget-text-editor a{color:var(--pil-link)!important;text-decoration:underline}
html[data-pil-app-appearance] body .elementor :is(.elementor-field-group,.pil-adaptive-surface) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),textarea,select){background-color:var(--pil-paper)!important;color:var(--pil-ink)!important;border-color:var(--pil-outline)!important;-webkit-text-fill-color:currentColor!important}
html[data-pil-app-appearance] body .elementor .elementor-field-group :is(input,textarea)::placeholder{color:var(--pil-muted)!important;opacity:1}
html[data-pil-app-appearance] body .elementor .pil-adaptive-surface :is(.elementor-button,button[type=submit]){background:var(--pil-action)!important;color:var(--pil-on-action)!important;-webkit-text-fill-color:currentColor!important}
html[data-pil-app-appearance] body .elementor .pil-adaptive-surface .elementor-button :is(span,i,svg){color:inherit!important;-webkit-text-fill-color:currentColor!important}
html[data-pil-app-appearance] body :is(.elementor,.elementor-popup-modal) :is(a,button,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--pil-focus);outline-offset:3px}
