/* SiteLooma global controls and native appearance. Authored pages keep their own styles. */
.slhf-appearance{display:flex;align-items:center;gap:6px;flex:none;font-size:11px;font-weight:700;white-space:nowrap}
.slhf-appearance select,.slma-theme[data-sl-theme-select]{min-height:40px;max-width:100%;border:1px solid #aabed6;background:#fff;color:#17395f;border-radius:9px;padding:6px 9px;font:inherit;cursor:pointer}
.slhf-appearance select:focus-visible,.slma-theme:focus-visible{outline:3px solid #19b9da;outline-offset:3px}
@media(max-width:1500px){.slhf-appearance span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@media(max-width:1170px){.slhf-appearance{width:100%;padding:6px 0}.slhf-appearance span{position:static;width:auto;height:auto;clip-path:none;overflow:visible}.slhf-appearance select{flex:1;min-height:44px}}
html[data-theme=dark] body #slhf-site-header.slhf-header{background:#0b1d37!important;border-color:#344a66!important;color:#edf6ff!important;color-scheme:dark!important}
html[data-theme=dark] body #slhf-site-header :is(.slhf-primary-nav,.sub-menu){background-color:#0b1d37!important;border-color:#344a66!important}
html[data-theme=dark] body #slhf-site-header :is(.slhf-primary-list a:not(.slhf-cta),.slhf-client-access,.slhf-toggle,.slhf-subtoggle,.slhf-appearance){color:#e2efff!important}
html[data-theme=dark] body #slhf-site-header .slhf-primary-list a:hover,html[data-theme=dark] body #slhf-site-header .slhf-primary-list a:focus-visible{color:#8de9fa!important}
html[data-theme=dark] body #slhf-site-header .slhf-logo--header{background:#fff;border-radius:10px;padding:3px}
html[data-theme=dark] body #slhf-site-header .slhf-slim-name{color:#edf6ff!important}
html[data-theme=dark] body #slhf-site-header .slhf-toggle-bars i{background:#e2efff!important}
html[data-theme=dark] :is(.slhf-appearance select,.slma-theme[data-sl-theme-select]){background:#172e4d;color:#e8f3ff;border-color:#526e91}
/* No blanket color inversion or forced styles inside client design previews. */
@media(prefers-reduced-motion:reduce){.slhf-appearance select{transition:none}}

/* Real location template surfaces; dark signature heroes remain intentionally dark. */
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section{background-color:#f7faff!important;background-image:linear-gradient(90deg,#dce8f5 1px,transparent 1px),linear-gradient(#dce8f5 1px,transparent 1px)!important;background-size:64px 64px!important;color:#173253!important}
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section.alt{background-color:#edf4fc!important}
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section :is(.ri-card,.ri-step,.ri-chip,.ri-faq details,.ri-note){background:#fff!important;color:#173253!important;border-color:#cfdfef!important;box-shadow:0 10px 28px #19395b0b!important}
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section :is(h2,h3,h4,p,li,summary,.ri-desc,.ri-eyebrow){color:#173253!important}
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section .ri-gradient{background:none!important;color:#305cb8!important}
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section .ri-secondary{background:#fff!important;border-color:#a9c4e1!important;color:#173f71!important}
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section .ri-chip a{color:#215a97!important}
/* Simple plugin-generated service/industry article content; portfolio previews stay independent. */
html[data-theme=dark] body:is(.single-slm_service,.single-slm_industry) :is(#content,.site-main,.entry-content,.ast-article-single){background-color:#0c1c33!important;color:#e5efff!important}
html[data-theme=dark] body:is(.single-slm_service,.single-slm_industry) .entry-content :is(h1,h2,h3,h4,p,li):not(#sl-signature-pages *){color:#e5efff!important}
html[data-theme=dark] body:is(.single-slm_service,.single-slm_industry) .entry-content a:not(.button):not(#sl-signature-pages *){color:#a3d8ff!important}
html[data-theme=light] .slm-services-grid>article,html[data-theme=light] .slm-pf-grid>.slm-pf-card{background:#fff!important;color:#173253!important;border-color:#cbddec!important}
html[data-theme=light] :is(.slm-services-grid,.slm-pf-grid) article :is(h3,p,.slm-pf-tag){color:#173253!important}
html[data-theme=light] :is(.slm-services-grid,.slm-pf-grid) article a{color:#135d9e!important}

/* V1.2.1 legacy dark islands: never apply light-surface text inside dark callouts. */
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section :is(.ri-map,.ri-final){color:#eef6ff!important;background:linear-gradient(120deg,#0d315e,#292759)!important;color-scheme:dark;}
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section :is(.ri-map,.ri-final) :is(h2,h3,h4,p,li,summary,.ri-desc,.ri-eyebrow,span,strong,b){color:#eef6ff!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section :is(.ri-map,.ri-final) .ri-gradient{color:#a9e8ff!important;-webkit-text-fill-color:currentColor!important;background:none!important}
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section :is(.ri-map,.ri-final) .ri-secondary{color:#173f71!important;-webkit-text-fill-color:currentColor!important;background:#fff!important}
html[data-theme=light] .sl-nseo-location-content:not(#sl-signature-pages *) .ri-section :is(.ri-map,.ri-final) .ri-primary{color:#fff!important;-webkit-text-fill-color:currentColor!important;background:#2754af!important}
/* Resolved appearance for native controls and header menu. */
html[data-theme=light] #slhf-site-header{color-scheme:light!important}html[data-theme=dark] #slhf-site-header{color-scheme:dark!important}

/* Agency OS 1.4 — resolved appearance and low-contrast signature patterns. */
html[data-theme=light]{--sla-surface:#fff;--sla-soft:#f2f7fd;--sla-text:#173253;--sla-muted:#45627e;--sla-border:#bacfe3;--sla-link:#155b99;--sla-pattern:#316ca515;color-scheme:light}
html[data-theme=dark]{--sla-surface:#142b49;--sla-soft:#0c1e37;--sla-text:#eef6ff;--sla-muted:#c7d9ed;--sla-border:#45617e;--sla-link:#9bdcff;--sla-pattern:#88cfff18;color-scheme:dark}
/* Signature blocks already stored in posts are enhanced at render time, without changing bytes. */
.slsg-signature .slsg-hero{background-image:linear-gradient(90deg,#7dc7ff12 1px,transparent 1px),linear-gradient(#7dc7ff12 1px,transparent 1px),radial-gradient(ellipse at 84% 20%,#6049a856,transparent 55%),linear-gradient(115deg,#07152e,#12315b)!important;background-size:56px 56px,56px 56px,auto,auto!important}
.slsg-signature .slsg-section{background-color:var(--sg-bg)!important;background-image:linear-gradient(90deg,var(--sla-pattern,#316ca515) 1px,transparent 1px),linear-gradient(var(--sla-pattern,#316ca515) 1px,transparent 1px)!important;background-size:54px 54px!important}
.slsg-signature .slsg-section.slsg-alt{background-image:radial-gradient(var(--sla-pattern,#316ca515) 1.5px,transparent 1.5px),radial-gradient(ellipse at 90% 0%,#7558bc12,transparent 60%)!important;background-size:24px 24px,auto!important}
.slsg-signature .slsg-section:nth-of-type(3n){background-image:repeating-linear-gradient(135deg,var(--sla-pattern,#316ca515) 0 1px,transparent 1px 32px)!important;background-size:auto!important}
.slsg-signature .slsg-card{background-image:radial-gradient(ellipse at 100% 0%,#598ddb10,transparent 60%)!important}
html[data-theme=dark] .slsg-signature{--sg-bg:#091a35;--sg-card:#10284a;--sg-text:#f0f7ff;--sg-muted:#dceaff;--sg-border:#355579;--sg-link:#9df2ff}
html[data-theme=light] .slsg-signature{--sg-bg:#f4f8ff;--sg-card:#fff;--sg-text:#10294d;--sg-muted:#34516c;--sg-border:#cddced;--sg-link:#145da5}
/* Existing dark artwork, live previews and status colors are intentionally not recolored globally. */
html[data-theme=dark] .slq .slq-main :is(h3,h4,label,legend),html[data-theme=dark] .slq :is(.slq-choice,.slq-page,.slq-style,.slq-palette,.slq-sample-card,.slq-addon-item,.slq-review,.slq-start-choice) :is(strong,small,p,span):not(.slq-choice-icon):not(.slq-live-frame *){color:var(--sla-text)!important}
html[data-theme=dark] .slq :is(.slq-main,.slq-review,.slq-addon-group,.slq-studio-controls,.slq-start-choice) :is(p,summary,label,small):not(.slq-live-frame *):not(.slq-error):not(.slq-step-feedback):not(.slq-note-warning){color:var(--sla-muted)!important}
html[data-theme=dark] .slq :is(.slq-addon-item,.slq-start-choice,.slq-start-option,.slq-billing-chooser label,.slq-section-controls label,.slq-feature-grid label,.slq-device-buttons,.slq-page-shortcuts button,.slq-studio-reset,.slq-order-actions button,.slq-sample-actions button):not(.slq-live-frame *){background:var(--sla-surface)!important;color:var(--sla-text)!important;border-color:var(--sla-border)!important}
html[data-theme=dark] .slq :is(.slq-choice,.slq-style,.slq-palette,.slq-page,.slq-start-option,.slq-addon-item,.slq-feature-grid label,.slq-section-controls label):has(input:checked){background:#21466c!important;border-color:#8ad9fa!important}
html[data-theme=dark] .slq .slq-device-buttons button{color:var(--sla-text)!important}html[data-theme=dark] .slq .slq-device-buttons button[aria-pressed=true]{background:#286087!important}
html[data-theme=dark] .slq :is(.slq-error,.slq-step-feedback){background:#4b242a!important;color:#ffe2e2!important}html[data-theme=dark] .slq .slq-note-warning{background:#4a361e!important;color:#ffe3ac!important}
html[data-theme=dark] .slq .slq-bd-note{background:#1d3b5c!important;color:#d9edff!important}
html[data-theme=dark] .slwa :is(.slwa-keyword-card,.slwa-keyword-page,.slwa-meta-card,.slwa-competitor-card,.slwa-data-note,.slwa-meta-totals>div,.slwa-fold summary){background:var(--sla-surface)!important;color:var(--sla-text)!important;border-color:var(--sla-border)!important}
html[data-theme=dark] .slwa :is(.slwa-block,.slwa-review,.slwa-keyword-card,.slwa-keyword-page,.slwa-meta-card,.slwa-competitor-card,.slwa-data-note,.slwa-meta-totals) :is(h3,h4,p,label,small,strong):not(.slwa-chip *){color:var(--sla-text)!important}
html[data-theme=dark] .slwa :is(.slwa-block,.slwa-review,.slwa-meta-card,.slwa-table) a{color:var(--sla-link)!important}
html[data-theme=dark] .slwa .slwa-depth label{background:#183858!important;color:var(--sla-text)!important;border-color:var(--sla-border)!important}html[data-theme=dark] .slwa .slwa-depth label small{color:var(--sla-muted)!important}html[data-theme=dark] .slwa .slwa-depth label:has(input:checked){background:#25557c!important}
/* These audit preview elements represent a deliberately light example UI. */
html[data-theme=dark] .slwa .slwa-preview-body{color-scheme:light;color:#15335d!important}html[data-theme=dark] .slwa .slwa-preview-body :is(h3,strong){color:#15335d!important}
html[data-theme=dark] .slm-showroom :is(.slm-card-info strong,.slm-card-info small,.slm-card-sub,.slm-note,.slm-inquiry-intro p,.slm-inquiry-intro li,.slm-inquiry-form label,.slm-privacy-note){color:var(--sla-text)!important}
html[data-theme=dark] .slm-showroom :is(.slm-chips button,.slm-billing-control button,.slm-inquiry-form){background:var(--sla-surface)!important;color:var(--sla-text)!important;border-color:var(--sla-border)!important}html[data-theme=dark] .slm-showroom :is(.slm-chips button.is-active,.slm-billing-control button.is-active){background:#28547d!important;color:white!important}
html[data-theme=dark] .slmim :is(.slmim-toolbar,.slmim-card-body) :is(label,p,small,strong){color:var(--sla-text)!important}
/* Portfolio outer viewer chrome only; never iframe or demo canvas. */
html[data-theme=dark] .slpf-preview-stage{background:#0f263f!important;color:var(--sla-text)!important}html[data-theme=dark] .slpf-preview-stage-head :is(strong,span),html[data-theme=dark] .slpf-preview-help{color:var(--sla-muted)!important}
html[data-theme=dark] .slpf-preview-canvas{background:repeating-linear-gradient(45deg,#142b49 0 13px,#1a3555 13px 26px)!important}
html[data-theme=dark] .slc-panel :is(.slc-tabs button,.slc-view-body p,.slc-form small){color:var(--sla-text)!important}
html[data-theme=dark] .slb-portal :is(.slb-demo-panel,.slb-demo-footer,.slb-demo-section-links a,.slb-demo-projects a){background:var(--sla-surface)!important;color:var(--sla-text)!important;border-color:var(--sla-border)!important}
html[data-theme=dark] .slb-portal .slb-demo-record summary,html[data-theme=dark] .slb-portal .slb-demo-record summary small{color:var(--sla-text)!important}
/* Component patterns use backgrounds, no extra interactive overlay. */
:is(.slq,.slmim,.slm-showroom,.slnd,.slwa .slwa-results,.slb-portal .slb-header){background-image:linear-gradient(90deg,var(--sla-pattern,#316ca515) 1px,transparent 1px),linear-gradient(var(--sla-pattern,#316ca515) 1px,transparent 1px)!important;background-size:54px 54px!important}
.slwa .slwa-review,.slmim .slmim-toolbar{background-image:radial-gradient(var(--sla-pattern,#316ca515) 1px,transparent 1px)!important;background-size:22px 22px!important}
:is(.slq,.slwa,.slb-portal,.slm-showroom,.slmim,.slc-panel,.slnd) :is(input,select,textarea)::placeholder{color:var(--sla-muted,#45627e)!important;opacity:1}
@media(forced-colors:active){:is(.slsg-signature,.slq,.slwa,.slb-portal,.slm-showroom,.slmim,.slc-panel,.slnd) :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid Highlight!important;outline-offset:3px}:is(.slsg-hero,.slsg-section,.slq,.slmim,.slm-showroom,.slnd,.slwa-results,.slb-header){background-image:none!important}}
/* Pair every patterned surface with a solid readable fallback. */
html[data-theme=dark] :is(.slq,.slmim,.slm-showroom,.slnd,.slwa .slwa-results){background-color:#0c1e37!important}
html[data-theme=light] :is(.slq,.slmim,.slm-showroom,.slnd,.slwa .slwa-results){background-color:#f2f7fd!important}
html[data-theme=dark] .slb-portal .slb-header{background-color:#10294d!important}
html[data-theme=light] .slb-portal .slb-header{background-color:#eaf4ff!important}
html[data-theme=light] .slb-portal .slb-header :is(h1,p,.slb-kicker){color:#173253!important}
html[data-theme=dark] .slb-portal .slb-header :is(h1,p,.slb-kicker){color:#edf6ff!important}
html[data-theme=dark] .slwa .slwa-review,html[data-theme=dark] .slmim .slmim-toolbar{background-color:#152b48!important}
html[data-theme=light] .slwa .slwa-review,html[data-theme=light] .slmim .slmim-toolbar{background-color:#edf6ff!important}
html[data-theme=light] .slwa :is(.slwa-keyword-card>p,.slwa-data-note p,.slwa-field-note,.slwa-meta-totals span){color:#45627e!important}

/* 1.7.1 — paired foreground/background contrast, scoped to actual UI.
   Auto uses the existing resolved html[data-theme] state. */
html[data-theme=dark] body #slhf-site-header .slhf-client-access{
 background:#172e4d!important;background-image:none!important;color:#edf6ff!important;
 -webkit-text-fill-color:currentColor!important;border-color:#6886a7!important;
}
html[data-theme=dark] body #slhf-site-header .slhf-client-access:is(:hover,:focus-visible){
 background:#254b72!important;color:#fff!important;border-color:#9deaff!important;
}
html[data-theme=light] body #slhf-site-header .slhf-client-access{
 background:#f1f8ff!important;color:#194a78!important;-webkit-text-fill-color:currentColor!important;border-color:#9bbfdf!important;
}
html[data-theme=light] body #slhf-site-header .slhf-client-access:is(:hover,:focus-visible){background:#e4f4ff!important;color:#093e71!important}
html[data-theme=dark] body #slhf-site-header .slhf-toggle{background:#172e4d!important;color:#edf6ff!important;border-color:#6886a7!important;-webkit-text-fill-color:currentColor!important}
html[data-theme=dark] body #slhf-site-header .slhf-toggle:is(:hover,:focus-visible),html[data-theme=dark] body #slhf-site-header .slhf-subtoggle:is(:hover,:focus-visible){background:#254b72!important;color:#fff!important}
html[data-theme=dark] body #slhf-site-header .slhf-primary-list .sub-menu a:is(:hover,:focus-visible){background:#254b72!important;color:#fff!important}
html[data-theme=dark] body #slhf-site-header .slhf-primary-list .current-menu-item>a:not(.slhf-cta){color:#9deaff!important}
html[data-theme=dark] body #slhf-site-header .slhf-primary-list>li{border-color:#344a66!important}
html[data-theme=dark] body #slhf-site-header :is(.slhf-toggle,.slhf-subtoggle,.slhf-client-access):focus-visible{outline:3px solid #9deaff!important;outline-offset:3px!important}
/* Verified homepage V44 controls; no recoloring of intentional before/after demo. */
html[data-theme=dark] .slh44 .slh-v42-card .slh-v42-overline{color:#a5e5ff!important;-webkit-text-fill-color:currentColor!important}
html[data-theme=dark] .slh44 .slh-v42-step strong{color:#edf6ff!important;-webkit-text-fill-color:currentColor!important}
html[data-theme=dark] .slh44 .slh-step .slh-number{background:#274f79!important;color:#fff!important;-webkit-text-fill-color:currentColor!important}
.slh44 .slh-highlight .slh-check{color:#066d6d!important}
.slh44 .slh-browser-top .slh-address{color:#405b76!important}
@media(forced-colors:active){html[data-theme] body #slhf-site-header :is(.slhf-client-access,.slhf-toggle){background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important;-webkit-text-fill-color:currentColor!important}}
