/* Explicit pairs for known third-party public controls; no payment iframe or admin overrides. */
html[data-pil-app-appearance] body :is(.postgate-paywall,.woocommerce form.checkout,.woocommerce form.woocommerce-form-login,.woocommerce form.woocommerce-form-register,.woocommerce form.lost_reset_password,.woocommerce-checkout #payment){background-color:var(--pil-paper)!important;color:var(--pil-ink)!important;border-color:var(--pil-outline)!important}
html[data-pil-app-appearance] body :is(.postgate-paywall,.woocommerce form.checkout,.woocommerce form.woocommerce-form-login,.woocommerce form.woocommerce-form-register,.woocommerce form.lost_reset_password) :is(label,legend,.postgate-paywall__price-amount){color:var(--pil-ink)!important;-webkit-text-fill-color:currentColor!important}
html[data-pil-app-appearance] body :is(.postgate-paywall,.woocommerce form.checkout,.woocommerce form.woocommerce-form-login,.woocommerce form.woocommerce-form-register,.woocommerce form.lost_reset_password) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),select,textarea){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 :is(.postgate-paywall,.woocommerce form) :is(input,textarea)::placeholder{color:var(--pil-muted)!important;opacity:1}
html[data-pil-app-appearance] body :is(.postgate-paywall,.woocommerce form.checkout,.woocommerce form.woocommerce-form-login,.woocommerce form.woocommerce-form-register,.woocommerce form.lost_reset_password) :is(button[type=submit],input[type=submit],#place_order){background:var(--pil-action)!important;color:var(--pil-on-action)!important;-webkit-text-fill-color:currentColor!important}
html[data-pil-app-appearance] body :is(.postgate-paywall,.woocommerce form) :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--pil-focus);outline-offset:3px}
/* Article sharing: override theme link decoration and legacy LinkedIn inline styling. */
body.single-post .pil-article-share > :is(button[data-pil-article-share],a.pil-li-link,a.pil-whatsapp-share){box-sizing:border-box!important;display:inline-flex;align-items:center!important;justify-content:center!important;gap:6px!important;height:36px!important;min-height:36px!important;padding:0 11px!important;border:1px solid var(--pil-outline,#8494aa)!important;border-radius:8px!important;background:transparent!important;color:var(--pil-ink,inherit)!important;font:500 13px/1 Inter,system-ui,sans-serif!important;text-decoration:none!important;box-shadow:none!important;background-image:none!important;vertical-align:middle!important}
body.single-post .pil-article-share > :is(a.pil-li-link,a.pil-whatsapp-share){width:36px!important;padding:0!important}
body.single-post .pil-article-share > :is(a.pil-li-link,a.pil-whatsapp-share)::before,body.single-post .pil-article-share > :is(a.pil-li-link,a.pil-whatsapp-share)::after{content:none!important;display:none!important}
body.single-post .pil-article-share > a svg{width:14px!important;height:14px!important;flex:none}
body.single-post .pil-article-share > [hidden]{display:none!important}
body.single-post .pil-article-share > :is(button,a):focus-visible{outline:2px solid var(--pil-focus,#315aa5)!important;outline-offset:3px}
/* Explicit dark surface/text pairing for Postgate, including Maag's native scheme. */
:is(html[data-pil-app-appearance=dark] body,body[data-scheme=dark]) .postgate-paywall{--pil-pg-paper:#19243b;--pil-pg-ink:#f1f5ff;--pil-pg-line:#71829f;background:var(--pil-pg-paper)!important;color:var(--pil-pg-ink)!important;border-color:var(--pil-pg-line)!important;color-scheme:dark}
:is(html[data-pil-app-appearance=dark] body,body[data-scheme=dark]) .postgate-paywall :is(div,section,article,header,footer,p,h1,h2,h3,h4,h5,h6,span,strong,em,small,li,label,legend){background-color:transparent!important;color:var(--pil-pg-ink)!important;-webkit-text-fill-color:currentColor!important;border-color:var(--pil-pg-line)!important}
:is(html[data-pil-app-appearance=dark] body,body[data-scheme=dark]) .postgate-paywall a{color:#c3d8ff!important;-webkit-text-fill-color:currentColor!important}
:is(html[data-pil-app-appearance=dark] body,body[data-scheme=dark]) .postgate-paywall :is(button,input[type=submit],a.button,a.wp-element-button,a[class*="btn"],a[class*="button"]){background:#d5e4ff!important;color:#142343!important;border-color:#d5e4ff!important;-webkit-text-fill-color:currentColor!important}
:is(html[data-pil-app-appearance=dark] body,body[data-scheme=dark]) .postgate-paywall :is(button,a.button,a.wp-element-button,a[class*="btn"],a[class*="button"]) :is(span,strong,em,small){color:inherit!important}
:is(html[data-pil-app-appearance=dark] body,body[data-scheme=dark]) .postgate-paywall :is(input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),textarea,select){background:#24344f!important;color:#f1f5ff!important;border-color:#a0b3ce!important;-webkit-text-fill-color:currentColor!important}
