/* Preserve MaroonDM's quiet surfaces and authentic, unfiltered project evidence. */
:root{--theme-bg:#fff;--theme-control-bg:#edf0f2;--theme-fg:#182126;--theme-border:#b6c2ca;--theme-accent:#762f47}
.theme-control{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:var(--theme-fg);cursor:pointer;position:relative;z-index:11}.theme-control svg{width:22px;height:22px}.theme-control:hover{color:var(--theme-accent)}.theme-control:focus-visible{outline:3px solid var(--theme-accent);outline-offset:4px}.theme-control--standalone{position:fixed;inset-inline-end:20px;top:20px;z-index:50}.mdm-header .theme-control{margin-inline-start:14px}.header{gap:24px}.menu{color:inherit}
.backtop span{background:rgba(255,255,255,.88);backdrop-filter:blur(8px);color:#182126}.backtop{background:conic-gradient(#762f47 var(--progress,0%),rgba(215,220,224,.62) 0)}.backtop:focus-visible{outline:3px solid var(--theme-accent);outline-offset:4px}
html[data-theme=dark]{--theme-bg:#141e25;--theme-control-bg:#22323d;--theme-fg:#edf2f5;--theme-border:#627582;--theme-accent:#edb1c4;--ink:#edf2f5;--muted:#bac8d1;--gray:#1d2b34;--blue:#253b49;--line:#465b69;color-scheme:dark}
html[data-theme=dark] body{background:var(--theme-bg);color:var(--theme-fg)}
html[data-theme=dark] :is(.footer,.case-context,.case-result,.case-next,.case-languages,.article-hero,.discovery-clarity,.contact-prep,.article-body article,.article-journey li,.article-pull-quote,.article-body ol li){background-color:var(--gray)}
html[data-theme=dark] :is(.case-gallery,.case-overview,.case-feature-proof,.case-journey-proof,.journal-page,.prime-full-page,.article-blueprint-node,.project-img,.skip){background-color:var(--theme-bg)}
html[data-theme=dark] :is(.case-delivery,.case-decisions,.article-body article:nth-child(even),.article-body .article-quote,.article-blueprint-canvas){background-color:var(--blue)}
html[data-theme=dark] .cta{background:#342430}html[data-theme=dark] .discovery{background:#0c141a;color:#edf2f5}html[data-theme=dark] .discovery .btn{background:#edf2f5;color:#182126}
html[data-theme=dark] :is(.hero h1 em,.nav a:hover,.nav a:focus,.case-back,.case-out,.article-language-link,.article-body a,.article small,.service .num){color:var(--theme-accent)}
html[data-theme=dark] :is(.case-next-link,.case-lead){color:var(--theme-fg)!important}html[data-theme=dark] :is(.service-evidence p,.case-duo figcaption,.case-caption,.case-feature-proof figcaption,.case-journey-proof figcaption,.article-body figcaption){color:var(--muted)}
html[data-theme=dark] .article:hover{background:#22343f}html[data-theme=dark] .nav.open{background:#1d2b34;color:#edf2f5}html[data-theme=dark] .btn.alt{color:var(--theme-fg)}html[data-theme=dark] .case-card .project-img{background:var(--gray)}
html[data-theme=dark] .backtop span{background:rgba(20,30,37,.87);color:#edf2f5}html[data-theme=dark] .backtop{background:conic-gradient(#edb1c4 var(--progress,0%),rgba(98,117,130,.55) 0)}
/* Retained functional pages use their established layout, now with dark paper surfaces. */
html[data-theme=dark] :is(.mdm-page,.ar-page,.booking-thanks,.career-section,.font-guide,.mdm-section){background-color:#18242c;color:#edf2f5}
html[data-theme=dark] :is(.mdm-page,.ar-page,.career-section,.booking-thanks) :is(h1,h2,h3,h4){color:#edf2f5}
html[data-theme=dark] :is(.mdm-page,.ar-page,.career-section,.booking-thanks) p{color:#c4cdd3}
html[data-theme=dark] :is(.career-form,.booking-form) :is(input,textarea,select){background:#22323d;color:#edf2f5;border-color:#627582}
@media(max-width:800px){.header{gap:14px}.header .theme-control{margin-inline-start:auto}.header .menu{margin-inline-start:0!important;margin-inline-end:0!important}.mdm-header .theme-control{margin-inline-start:8px;flex-basis:44px}.theme-control--standalone{top:12px;inset-inline-end:12px}}
@media(prefers-reduced-motion:reduce){.theme-control{transition:none}}
html[data-theme=dark] :is(.case-card .case-label,.design-choice h4,.case-journey li:before){color:var(--theme-accent)}
.mdm-header{grid-template-columns:auto 1fr auto auto}
html[data-theme=dark]{--paper:#1d2b34;--charcoal:#edf2f5;--rule:#465b69}
html[data-theme=dark] .career-section:nth-of-type(even){background-color:#22343f}
html[data-theme=dark] .career-application{background:#22343f!important}
html[data-theme=dark] .career-form.booking-form{background:#1d2b34;color:#edf2f5}
html[data-theme=dark] :is(.career-application-grid,.career-form,.booking-form) :is(p,label,legend,span){color:#c4cdd3}
html[data-theme=dark] :is(.career-section,.booking-thanks) a:not(.mdm-button){color:#edb1c4}
@media(max-width:1050px){.mdm-header{grid-template-columns:1fr auto auto}}

html[data-theme=dark] .notice{background:#0c141a;color:#edf2f5}


/* Retained surface audit */
/* Retained pages: preserve existing surface roles in dark mode, not a blanket color. */
html[data-theme=dark] .lseo-hero.mdm-shell.lrp-hero{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.lrp-gap{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.lrp-dashboard-section{background-color:#141e25!important}
html[data-theme=dark] .mdm-section.lrp-system{background-color:#342430!important}
html[data-theme=dark] .mdm-section.lrp-pricing{background-color:#141e25!important}
html[data-theme=dark] .mdm-section.lrp-fit{background-color:#0c141a!important}
html[data-theme=dark] .mdm-section.lseo-faq.lrp-faq{background-color:#253b49!important}
html[data-theme=dark] .lseo-hero.mdm-shell{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.local-seo-visibility-section{background-color:#253b49!important}
html[data-theme=dark] .mdm-section.lseo-system{background-color:#342430!important}
html[data-theme=dark] .mdm-section.lseo-work{background-color:#141e25!important}
html[data-theme=dark] .mdm-section.lseo-fit{background-color:#0c141a!important}
html[data-theme=dark] .mdm-section.lseo-process{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.lseo-options{background-color:#141e25!important}
html[data-theme=dark] .mdm-section.lseo-faq{background-color:#253b49!important}
html[data-theme=dark] .wd-hero.mdm-shell{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.wd-problem{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.wd-blueprint{background-color:#342430!important}
html[data-theme=dark] .mdm-section.wd-process{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.wd-bilingual{background-color:#253b49!important}
html[data-theme=dark] .mdm-section.wd-deliverables{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.wd-faq{background-color:#253b49!important}
html[data-theme=dark] .wgs-hero.mdm-shell{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.wgs-foundation{background-color:#342430!important}
html[data-theme=dark] .mdm-section.wgs-maintenance{background-color:#141e25!important}
html[data-theme=dark] .mdm-section.wgs-improve{background-color:#0c141a!important}
html[data-theme=dark] .mdm-section.wgs-process{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.wgs-testimonial{background-color:#141e25!important}
html[data-theme=dark] .sector-hero.mdm-shell{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.sector-grid-section{background-color:#141e25!important}
html[data-theme=dark] .mdm-section.sector-why{background-color:#253b49!important}
html[data-theme=dark] .mdm-section.sector-capabilities{background-color:#342430!important}
html[data-theme=dark] .mdm-section.sector-related{background-color:#1d2b34!important}
html[data-theme=dark] .ar-hero.mdm-shell{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.ar-content-section.ar-dark-section{background-color:#0c141a!important}
html[data-theme=dark] .mdm-section.ar-content-section{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.ar-faq{background-color:#253b49!important}
html[data-theme=dark] .mdm-section.ar-content-section.ar-dark-section.ar-section-with-side-visual{background-color:#0c141a!important}
html[data-theme=dark] .mdm-section.font-guide-intro{background-color:#141e25!important}
html[data-theme=dark] .mdm-section.font-guide-choices{background-color:#141e25!important}
html[data-theme=dark] .mdm-section.font-guide-checklist{background-color:#253b49!important}
html[data-theme=dark] .healthcare-hero.mdm-shell{background-color:#141e25!important}
html[data-theme=dark] .mdm-section.healthcare-intro{background-color:#253b49!important}
html[data-theme=dark] .mdm-section.healthcare-list-section{background-color:#141e25!important}
html[data-theme=dark] .mdm-section.healthcare-goals{background-color:#342430!important}
html[data-theme=dark] .mdm-section.healthcare-sitemap-section{background-color:#1d2b34!important}
html[data-theme=dark] .mdm-section.healthcare-visibility{background-color:#253b49!important}
html[data-theme=dark] .mdm-section.sector-related.healthcare-related{background-color:#141e25!important}
html[data-theme=dark] .mdm-section.healthcare-faq-section{background-color:#1d2b34!important}
html[data-theme=dark] .career-thanks.mdm-shell{background-color:#1d2b34!important}
html:not([data-theme=dark]) .mdm-section:is(.wd-problem,.lrp-gap){background-color:#e9e2d7}
html[data-theme=dark] .mdm-section:is(.wd-problem,.lrp-gap){background-color:#253b49!important}

html[data-theme=dark] .mdm-section.ar-content-section:not(.ar-dark-section){background-color:#141e25!important}

/* Review correction: shared labels and active navigation must stay legible on dark surfaces. */
html[data-theme=dark] :is(.nav a[aria-current="page"],.case-next-link small,.article-opening-label,.article-section-heading>span,.article-journey li>span,.article-journey-icon,.article-blueprint-node span,.article-body ol li>span){color:var(--theme-accent)}
html[data-theme=dark] .header>.btn{background:var(--theme-accent);color:#182126}
html[data-theme=dark] .header>.btn:hover{background:#f5c8d7;color:#182126}
html[data-theme=dark] :is(.case-next-link,.screenshot-full):focus-visible{outline-color:var(--theme-accent)}
.discovery-grid>div>p+p{margin-top:20px}
.discovery-grid .strategy-action{margin-top:28px}
/* Enquiry evidence stays a distinct, readable band in both colour schemes. */
html[data-theme=dark] .case-lead-evidence{background:var(--gray)}
html[data-theme=dark] .case-lead-evidence figcaption{color:var(--muted)}
/* Dark-mode accents retain visible contrast, including non-text separators. */
html[data-theme=dark] :is(.case-journey li,.case-read,.article-pull-quote){border-color:var(--theme-accent)}
html[data-theme=dark] .dot{background:var(--theme-accent)}
html[data-theme=dark] .case-journey li:before{color:var(--theme-accent)}

/* Maroon dividers must remain visible on dark surfaces. */
html[data-theme=dark] :is(.clarity-grid article,.case-journey li,.case-read,.article-journey li,.article-pull-quote){border-color:var(--theme-accent)}

/* Compact bilingual mobile navigation: a deliberate panel, not a page-sized list. */
.header .nav-contact{display:none}
@media(max-width:800px){
 .header{position:relative;z-index:20}
 .header .menu{position:relative;border:1px solid var(--line);border-radius:5px;cursor:pointer}
 .header .menu:hover,.header .menu[aria-expanded="true"]{background:var(--gray)}
 .header .menu:focus-visible,.header .nav a:focus-visible{outline:3px solid var(--theme-accent,var(--maroon));outline-offset:3px}
 .header .menu[aria-expanded="true"] svg{visibility:hidden}
 .header .menu[aria-expanded="true"]::before,.header .menu[aria-expanded="true"]::after{content:"";position:absolute;width:18px;height:2px;background:currentColor;inset:0;margin:auto;transform:rotate(45deg)}
 .header .menu[aria-expanded="true"]::after{transform:rotate(-45deg)}
 .header .nav{top:calc(100% - 2px);left:20px;right:20px;margin:0;gap:4px;padding:12px;border:1px solid var(--line);border-top:3px solid var(--maroon);border-radius:6px;background:#fff;box-shadow:0 18px 40px #18212624;max-height:calc(100dvh - 140px);overflow-y:auto;overscroll-behavior:contain;font-size:16px;line-height:1.5;text-align:start}
 html[dir=rtl] .header .nav{margin:0;gap:4px}
 .header .nav.open{display:flex;animation:nav-reveal .16s ease-out}
 .header .nav a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:12px 14px;border-radius:4px;font-weight:500;text-decoration:none;transition:background .15s,color .15s}
 .header .nav a:hover,.header .nav a:focus-visible{background:var(--gray)}
 .header .nav a[aria-current="page"]{background:#f5eaf0;color:#762f47;font-weight:700;box-shadow:inset 3px 0 #762f47}
 html[dir=rtl] .header .nav a[aria-current="page"]{box-shadow:inset -3px 0 #762f47}
 .header .nav a:not(.language-switch):not(.nav-contact)::after{content:"";width:7px;height:7px;flex:0 0 7px;border-top:1.5px solid currentColor;border-inline-end:1.5px solid currentColor;transform:rotate(45deg);opacity:.65;margin-inline-end:3px}
 html[dir=rtl] .header .nav a:not(.language-switch):not(.nav-contact)::after{transform:rotate(-45deg)}
 .header .nav .language-switch{margin-top:6px;border-top:1px solid var(--line);border-radius:0;padding-top:16px;color:var(--muted);font-size:14px}
 .header .nav .nav-contact{display:flex;margin-top:4px;justify-content:center;background:var(--maroon);color:white;font-size:15px;font-weight:600}
 .header .nav .nav-contact:hover{background:#562235;transform:none}
 html[data-theme=dark] .header .nav{background:#1d2b34;border-color:#465b69;border-top-color:var(--theme-accent)}
 html[data-theme=dark] .header .nav a[aria-current="page"]{background:#342430;color:#edb1c4;box-shadow:inset 3px 0 #edb1c4}
 html[data-theme=dark][dir=rtl] .header .nav a[aria-current="page"]{box-shadow:inset -3px 0 #edb1c4}
 html[data-theme=dark] .header .nav .nav-contact{background:#edb1c4;color:#182126}
 html[data-theme=dark] .header .nav .nav-contact:hover{background:#f5c8d7}
}
@keyframes nav-reveal{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.header .nav.open{animation:none}.header .nav a{transition:none}}
