/* Display preference for the isolated Calab preview. Light retains the approved design. */
.nav-actions{display:flex;align-items:center;gap:12px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;margin-left:0;padding:0;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit}
.theme-toggle svg{width:20px;height:20px;stroke-width:1.6}
.theme-toggle .theme-sun{display:none}
.theme-toggle:hover{background:#80808018}
.theme-toggle:focus-visible{outline:2px solid #0059ff;outline-offset:4px}
html[data-theme=dark] .theme-toggle .theme-moon{display:none}
html[data-theme=dark] .theme-toggle .theme-sun{display:block}
@media(max-width:900px){.nav-actions{margin-left:auto;margin-right:8px}.theme-toggle{margin:0}.nav-mobile{margin-left:0}}
html[data-theme=dark]{color-scheme:dark;--ink:#f1f3f8;--soft:#1b1e25;--theme-muted:#b6c0d0;--theme-border:#ffffff24;--theme-accent:#008cff}
html[data-theme=dark] body{background:#121212;color:var(--ink)}
html[data-theme=dark] :is(.tone-light,.work-story,.factory-home,.wide-photo){background:#121212;color:var(--ink)}
html[data-theme=dark] .tone-soft{background:var(--soft)}
html[data-theme=dark] :is(.eyebrow,.section-copy,.editorial-hero .hero-description,.editorial-hero .hero-copy .eyebrow,.clarity-intro>p:last-child,.calab-relationship>a>span,.calab-relationship p,.work-heading>p,.work-copy>p,.work-comparison span,.work-comparison p,.work-caption,.factory-intro>div:last-child>p,.factory-path p,.factory-foundation>span,.calab-capability-list p,.editorial-rows p,.split-statement p,.solution-block p,.principles p,.delivery-steps p,.delivery-steps small,.delivery-description>p,.delivery-description dt,.visitor-path-grid p,.site-orientation p,.site-orientation a>span,.faq details>p,.team-grid p,.resource-count,.resource-card a>span,.resource-empty,.article-meta,.article-body,.case-feature p,.contact-copy>p:not(.eyebrow),.form-grid label,.form-note,.form-result,.proof-line,.row-index){color:var(--theme-muted)}
html[data-theme=dark] :is(.clarity-intro h2>span,.text-link,.visitor-path-grid>a>span:first-child,.solution-symbol svg,.result-label,.calab-capability-list>a>span,.article-body a,.form-result a){color:var(--theme-accent)}
html[data-theme=dark] :is(.article-body h2,.article-body h3,.article-body blockquote,.delivery-description dd,.pathway-link,.factory-foundation,.work-tabs button[aria-selected=true],.delivery-track button[aria-selected=true]){color:var(--ink)}
html[data-theme=dark] :is(.tone-light,.tone-soft) .button:not(.button-outline){background:#f1f3f8;color:#121212;border-color:#f1f3f8}
html[data-theme=dark] :is(.tone-light,.tone-soft) .button:not(.button-outline):hover{background:#cddcff;border-color:#cddcff}
html[data-theme=dark] .button-outline:hover{background:#fff!important;color:#121212!important;border-color:#fff!important}
html[data-theme=dark] :is(.nav-light,.nav.is-scrolled){color:#f1f3f8}
html[data-theme=dark] .nav.is-scrolled .nav-shell{background:#17191ff2;border:1px solid var(--theme-border)}
html[data-theme=dark] :is(.nav-light,.nav.is-scrolled) .brand-white{display:block}
html[data-theme=dark] :is(.nav-light,.nav.is-scrolled) .brand-dark{display:none}
html[data-theme=dark] :is(.nav-light,.nav.is-scrolled) .nav-contact{background:#f1f3f8;color:#121212;border-color:#f1f3f8}
html[data-theme=dark] :is(.nav-light,.nav.is-scrolled) .nav-mobile{border-color:#ffffff60}
html[data-theme=dark] :is(.dropdown,.mobile-drawer){background:#1b1e25;color:var(--ink);border-color:var(--theme-border)}
html[data-theme=dark] :is(.dropdown a small,.dropdown svg,.mobile-drawer details>a){color:var(--theme-muted)}
html[data-theme=dark] :is(.dropdown a:hover,.dropdown a:focus-visible,.dropdown a[aria-current=page]){background:#0059ff20;color:#008cff}
html[data-theme=dark] .nav-group>button[aria-current=page]{color:#008cff}
html[data-theme=dark] :is(.rail-controls button,.industry-tabs,.capability-art,.delivery-artifact,.work-theatre){background:#1b1e25;color:var(--ink);border-color:var(--theme-border)}
html[data-theme=dark] :is(.industry-tabs button,.work-tabs button,.delivery-track button,.resource-tools button){color:var(--theme-muted)}
html[data-theme=dark] :is(.industry-tabs button[aria-selected=true],.resource-tools button[aria-pressed=true]){background:#303644;color:var(--ink);border-color:#60718b}
html[data-theme=dark] .resource-tools input{color:var(--ink)}
html[data-theme=dark] :is(.input-document,.work-intelligence,.work-result,.artifact-sheet,.mini-workspace,.azure-boundary){background:#20242d;color:var(--ink);border-color:#60718b}
html[data-theme=dark] :is(.input-document strong,.work-intelligence>div>span,.work-result li,.theatre-top,.theatre-top>span:last-child,.sequence-replay,.artifact-sheet>span,.artifact-sheet>strong,.artifact-stage,.mini-toolbar>span,.mini-flow small,.azure-experiences,.azure-core p,.azure-inputs,.azure-controls){color:var(--theme-muted)}
html[data-theme=dark] :is(.input-document>i,.artifact-line){background:#48536b}
html[data-theme=dark] :is(.mini-core,.mini-base,.azure-core){background:#283246;color:var(--ink);border-color:#60718b}
html[data-theme=dark] .work-comparison>div:last-child>span{color:var(--theme-accent)}
html[data-theme=dark] :is(.site-orientation,.calab-relationship,.calab-relationship>a,.work-comparison>div,.work-tabs,.editorial-rows article,.solution-block,.delivery-steps article,.factory-foundation,.faq details,.resource-tools,.article-meta,.client-directory,.client-logo-grid>div){border-color:var(--theme-border)}
html[data-theme=dark] :is(.form-grid input,.form-grid select,.form-grid textarea){background:#20242d;color:var(--ink);border-color:#60718b}
html[data-theme=dark] .client-proof img{filter:brightness(0) invert(1)}
html[data-theme=dark] .motion-toggle{background:#20242ded;color:var(--ink);border-color:#60718b}
html[data-theme=dark] .platform-chapter{background:#20242d}
html[data-theme=dark] .calab-workspace{background:#1b1e25;color:var(--ink);border-color:#48536b}
html[data-theme=dark] :is(.workspace-sidebar,.workspace-toolbar,.workflow-list>button,.workflow-detail,.knowledge-composer,.control-boundary){background:#20242d;color:var(--ink);border-color:#48536b}
html[data-theme=dark] :is(.workspace-navigation>button,.workspace-sidebar>p,.workspace-foundation span,.workspace-toolbar,.illustrative-label,.workspace-eyebrow,.workspace-view header>p:last-child,.workflow-list small,.workflow-detail>p,.workflow-detail li,.review-label,.sample-answer p,.source-reference,.control-boundary small,.control-boundary>p,.control-checks dd){color:var(--theme-muted)}
html[data-theme=dark] :is(.workspace-navigation>button[aria-pressed=true],.sample-prompt,.control-boundary>div){background:#293753;color:var(--ink)}
html[data-theme=dark] :is(.workflow-glyph,.source-reference){background:#25324b;color:#9dbcff;border-color:#60718b}
