/* Computek – controls & accessible dark theme */
.ck-preferences{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}
.ck-preferences__control{display:inline-flex;align-items:center;justify-content:center;width:42px;height:40px;padding:0;border:1px solid #cdd2db;border-radius:11px;background:#f7f8fb;color:#283347;font:600 13px/1 Sora,system-ui,sans-serif;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.ck-preferences__control:hover{background:#e9edf3;border-color:#9aa5b6}
.ck-preferences__control:focus-visible{outline:3px solid #f47b2b;outline-offset:3px}
.ck-theme i{font-size:19px;line-height:1}
@media(max-width:480px){.ck-preferences{gap:4px}.ck-preferences__control{width:36px;height:37px;border-radius:9px}.shell-actions{gap:6px!important}}
/* Night palette: scope to actual light surfaces, not every section/article. */
html[data-theme="dark"]{color-scheme:dark;--bg:#14181e;--surface:#222932;--surface-2:#2a333d;--text:#f2f4f7;--muted:#c3cbd5;--line:#45505d;--shadow:0 12px 35px rgba(0,0,0,.25)}
html[data-theme="dark"] body{background:#14181e;color:#f2f4f7}
html[data-theme="dark"] .site-shell-header{background:#151a20;border-color:#36404b}
html[data-theme="dark"] .shell-utility-bar{background:#11161b}
html[data-theme="dark"] .ck-preferences__control{background:#29323d;border-color:#526070;color:#fff}
html[data-theme="dark"] .ck-preferences__control:hover{background:#394555}
html[data-theme="dark"] :is(.shell-nav__panel,.shell-drawer__panel,.modal__content,.cookie-preferences__dialog){background:#222a33!important;color:#f4f5f7!important;border-color:#485461!important}
html[data-theme="dark"] main#conteudo > :is(.neo-section:not(.neo-section--dark),.neo-cta-end),html[data-theme="dark"] main#conteudo{background-color:#14181e!important}
html[data-theme="dark"] main :is(.neo-services-grid a,.neo-tech-grid a,.neo-project-card,.neo-cta-end__inner,.neo-contact-mini,.neo-contact-info,.contact-form,.project-form,.neo-note-card,.ck-detail-grid>div,.ck-checklist,.ck-project,.ck-last-cta-inner,.neo-focus-card,.neo-metrics article,.neo-problems-grid article){background:#252d37!important;border-color:#3e4b58!important;color:#f1f3f6!important;box-shadow:0 12px 26px rgba(0,0,0,.2)}
html[data-theme="dark"] main :is(.neo-services-grid a,.neo-tech-grid a,.neo-project-card,.neo-cta-end__inner,.neo-contact-mini,.neo-contact-info,.contact-form,.project-form,.neo-note-card,.ck-detail-grid>div,.ck-checklist,.ck-project,.ck-last-cta-inner,.neo-focus-card,.neo-metrics article,.neo-problems-grid article) :is(h1,h2,h3,h4,h5,h6,p,small,strong,span,li,label){color:#f1f3f6!important}
html[data-theme="dark"] main :is(.neo-services-grid a,.neo-tech-grid a,.neo-project-card,.neo-cta-end__inner,.neo-problems-grid article) p{color:#cbd3dc!important}
html[data-theme="dark"] main :is(.neo-section-head,.neo-section-head h2,.neo-section-head>div,.neo-section-head>p){background:transparent!important;color:#f2f4f7!important}
html[data-theme="dark"] main :is(.neo-section-head>p,.neo-section-head>div>p:not(.neo-eyebrow)){color:#cad2dc!important}
html[data-theme="dark"] main :is(.neo-eyebrow,.eyebrow,.footer-band__eyebrow,.ck-eyebrow){color:#fc995b!important}
html[data-theme="dark"] main :is(.neo-section-head,.neo-services-grid,.neo-tech-grid,.neo-cta-end) :is(a:hover,a:focus-visible){border-color:#f18743!important}
html[data-theme="dark"] main :is(input,textarea,select){background:#182029!important;color:#f4f6f8!important;border-color:#596674!important}
html[data-theme="dark"] main :is(input,textarea)::placeholder{color:#b6c0cb!important}
html[data-theme="dark"] :is(.btn--secondary,.shell-menu-toggle){background:#29333d!important;color:#f2f4f7!important;border-color:#495766!important}
html[data-theme="dark"] :is(.btn--accent,.shell-nav__cta){background:#f27c2d!important;color:#14181e!important}
html[data-theme="dark"] .neo-site :is(.hero-centered__highlights article,.neo-problems-grid article,.neo-projects-grid article,.neo-steps-grid article){border-color:#394754!important}
html[data-theme="dark"] .neo-site :is(.neo-services-grid i,.neo-tech-grid i){background:#323e4b!important;color:#ff9756!important}
html[data-theme="dark"] .neo-site :is(.neo-hero,.neo-section--dark,.neo-section--method){background-color:#1c232b!important}
html[data-theme="dark"] .neo-site :is(.hero-centered__tags span){background:#303a45!important;color:#e9edf1!important;border-color:#465463!important}
html[data-theme="dark"] .neo-site :is(.hero-centered h1 span){color:#f48737!important}
html[data-theme="dark"] .neo-site :is(.neo-cta-end__inner h2){color:#fff!important}
html[data-theme="dark"] .neo-site :is(.neo-cta-end__inner p){color:#c6d0da!important}
html[data-theme="dark"] .ck48-page :is(.ck48-contact .contact-form,.ck48-faq details,.ck48-faq){background:#242c35!important;color:#e9edf2!important;border-color:#43505c!important}
@media(prefers-reduced-motion:reduce){.ck-preferences__control{transition:none}}

html[data-theme="dark"] .neo-site .neo-hero--centered{background:#1c232b!important}
html[data-theme="dark"] .neo-site .hero-centered__lead{color:#d2d9e1!important}
html[data-theme="dark"] .neo-site .hero-centered__note{color:#aeb8c2!important}
html[data-theme="dark"] .neo-site .hero-link{color:#f2f4f7!important}
.shell-brand{position:relative}
.shell-brand__logo--dark{display:none}
html[data-theme="dark"] .shell-brand__logo--light{display:none}
html[data-theme="dark"] .shell-brand__logo--dark{display:block}

/* V3: Legal pages maintain an accessible dark palette throughout. */
html[data-theme="dark"] main.legal-editorial-page,
html[data-theme="dark"] .legal-editorial-page .legal-content{background:#14181e!important;color:#f2f4f7!important}
html[data-theme="dark"] .legal-editorial-page .legal-editorial-hero{background:#14181e!important;border-bottom-color:#38434e!important}
html[data-theme="dark"] .legal-editorial-page .narrow-content{background:#252d37!important;color:#edf1f5!important;border-color:#45525f!important}
html[data-theme="dark"] .legal-editorial-page .legal-content :is(h2,h3,h4,h5,h6,strong){color:#f2f4f7!important}
html[data-theme="dark"] .legal-editorial-page .legal-content :is(p,li,small){color:#cdd5df!important}
html[data-theme="dark"] .legal-editorial-page .legal-content a{color:#ffae78!important}
html[data-theme="dark"] .legal-editorial-page .legal-editorial-hero p:last-child{color:#cdd5df!important}
/* Keep desktop actions at the right and move preferences into the mobile drawer. */
.shell-actions{margin-left:auto}
.ck-preferences--drawer,.ck-preferences__drawer-row{display:none}
@media(max-width:980px){
  .ck-preferences--desktop{display:none!important}
  .ck-preferences__drawer-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-radius:16px;border:1px solid #d8dfe5;background:#f8f5ef}
  .ck-preferences__drawer-row>span{font-size:14px;font-weight:700;color:#283347}
  .ck-preferences--drawer{display:inline-flex}
  html[data-theme="dark"] .ck-preferences__drawer-row{background:#29333d;border-color:#4b5968}
  html[data-theme="dark"] .ck-preferences__drawer-row>span{color:#f2f4f7}
}

/* Dark mode: custom software page (plataformas-medida.php).
   Scope everything to this page so the light theme and other pages are unchanged. */
html[data-theme="dark"] main.custom-software-page{background:#14181e!important;color:#f2f4f7!important}
html[data-theme="dark"] .custom-software-page :is(.sw-intro,.sw-section){background:#14181e!important;color:#f2f4f7!important}
html[data-theme="dark"] .custom-software-page :is(.sw-intro h1,.sw-dual-head h2,.sw-section-heading h2,.sw-faq-layout h2,.sw-problem-list h3,.sw-process-list h3){color:#f2f4f7!important}
html[data-theme="dark"] .custom-software-page .sw-intro h1 em{color:#ff9855!important}
html[data-theme="dark"] .custom-software-page :is(.sw-intro__lead,.sw-dual-head>p,.sw-section-heading>p,.sw-faq-layout>div>p:last-child,.sw-problem-list p,.sw-process-list p,.sw-faq-items p){color:#c7d0da!important}
html[data-theme="dark"] .custom-software-page .sw-kicker{color:#ff9b56!important}
html[data-theme="dark"] .custom-software-page .sw-link{color:#f2f4f7!important}
html[data-theme="dark"] .custom-software-page :is(.sw-section--rule,.sw-section--process){border-color:#3b4652!important}
html[data-theme="dark"] .custom-software-page :is(.sw-problem-list article,.sw-process-list>div){border-color:#4b5867!important}
html[data-theme="dark"] .custom-software-page :is(.sw-problem-list article>span,.sw-process-list>div>span,.sw-number){color:#ff9b56!important}
html[data-theme="dark"] .custom-software-page :is(.sw-solution,.sw-cases article){background:#242d37!important;border-color:#475463!important;color:#f2f4f7!important}
html[data-theme="dark"] .custom-software-page :is(.sw-solution h3,.sw-cases h3){color:#f2f4f7!important}
html[data-theme="dark"] .custom-software-page :is(.sw-solution p,.sw-cases p){color:#c7d0da!important}
html[data-theme="dark"] .custom-software-page :is(.sw-solution>a,.sw-cases-more a){color:#ffab73!important}
html[data-theme="dark"] .custom-software-page .sw-solution__icon{background:#354251!important;color:#ff9b56!important}
html[data-theme="dark"] .custom-software-page :is(.sw-tags span,.sw-case-tags span){background:#34404d!important;color:#e7edf3!important;border-color:#596775!important}
html[data-theme="dark"] .custom-software-page .sw-case-meta span{color:#bfc9d4!important}
html[data-theme="dark"] .custom-software-page .sw-faq-items,
html[data-theme="dark"] .custom-software-page .sw-faq-items details{border-color:#465361!important}
html[data-theme="dark"] .custom-software-page .sw-faq-items summary{color:#f2f4f7!important}
html[data-theme="dark"] .custom-software-page .sw-faq-items summary i{color:#ff9b56!important}
/* Keep the illustrative dashboard light, with readable original text. */
html[data-theme="dark"] .custom-software-page .sw-system{background:#fff!important;color:#161a20!important;border-color:#687482!important}
html[data-theme="dark"] .custom-software-page .sw-system__body{background:#fff!important;color:#161a20!important}
html[data-theme="dark"] .custom-software-page .sw-system__top{background:#181b1e!important;color:#fff!important}
/* Solid background for the contrasting band; no light gaps. */
html[data-theme="dark"] .custom-software-page .sw-dark-band{background:#101316!important;color:#f2f4f7!important}
html[data-theme="dark"] .custom-software-page .sw-dark-band h2{color:#f2f4f7!important}
html[data-theme="dark"] .custom-software-page .sw-dark-band p:not(.sw-kicker){color:#c7d0da!important}
/* Closing CTA belongs to the same dark palette, not the original beige. */
html[data-theme="dark"] .custom-software-page .sw-final{background:#242d37!important;color:#f2f4f7!important;border-top:1px solid #465361!important}
html[data-theme="dark"] .custom-software-page .sw-final h2{color:#f2f4f7!important}
html[data-theme="dark"] .custom-software-page .sw-final p:not(.sw-kicker){color:#c7d0da!important}


/* V4 - Shared dark theme for ALL editorial software/service pages.
   Preserves light-mode appearance and visual mockups that need a light surface. */
html[data-theme="dark"] main.editorial-page{background:#14181e!important;color:#f2f4f7!important}
html[data-theme="dark"] main.editorial-page :is(.ep-hero,.ep-section){background:#14181e!important;color:#f2f4f7!important}
html[data-theme="dark"] main.editorial-page :is(.ep-hero,.ep-section,.ep-close) :is(h1,h2,h3,h4){color:#f2f4f7!important}
html[data-theme="dark"] main.editorial-page :is(.ep-lead,.ep-muted,.ep-split-heading>p:last-child,.ep-three p,.ep-four p,.ep-section p,.ep-footnote,.ep-number-list p,.ep-process li,.ep-faq details p){color:#c8d1dc!important}
html[data-theme="dark"] main.editorial-page .ep-kicker{color:#f39a59!important}
html[data-theme="dark"] main.editorial-page .ep-hero--automation h1 em{color:#ff9b59!important}
html[data-theme="dark"] main.editorial-page .ep-section--border{border-color:#444f5b!important}
html[data-theme="dark"] main.editorial-page :is(.ep-three article,.ep-four article,.ep-process li,.ep-number-list article,.ep-faq details){border-color:#485362!important}
html[data-theme="dark"] main.editorial-page :is(.ep-three span,.ep-compare span,.ep-number-list b){color:#ffa35f!important}
html[data-theme="dark"] main.editorial-page .ep-process b{color:#f2f4f7!important}
html[data-theme="dark"] main.editorial-page .ep-faq summary{color:#f2f4f7!important}
html[data-theme="dark"] main.editorial-page .ep-textlink{color:#f2f4f7!important}
html[data-theme="dark"] main.editorial-page :is(.ep-compare-old,.ep-compare-new,.ep-web-types article,.ep-dashboard-grid article,.ep-mgmt-modules>div){background:#252d37!important;border-color:#485563!important;color:#f2f4f7!important}
html[data-theme="dark"] main.editorial-page :is(.ep-compare-old,.ep-compare-new,.ep-web-types article,.ep-dashboard-grid article,.ep-mgmt-modules>div) :is(h2,h3,b,strong){color:#f2f4f7!important}
html[data-theme="dark"] main.editorial-page :is(.ep-web-types article,.ep-dashboard-grid article,.ep-mgmt-modules>div) :is(p,small){color:#c8d1dc!important}
html[data-theme="dark"] main.editorial-page .ep-close{background:#242d37!important;color:#f2f4f7!important}
html[data-theme="dark"] main.editorial-page .ep-close :is(p,small){color:#c8d1dc!important}
html[data-theme="dark"] main.editorial-page .ep-band{background:#101315!important;color:#f2f4f7!important}
html[data-theme="dark"] main.editorial-page .ep-band h2{color:#f2f4f7!important}
html[data-theme="dark"] main.editorial-page .ep-band :is(p,.ep-band-list span){color:#cbd2d9!important}
/* Illustrations: retain their original light palette and ensure readable captions. */
html[data-theme="dark"] main.editorial-page :is(.ep-network,.ep-browser,.ep-dashboard){background:#fff!important;color:#161a20!important}
html[data-theme="dark"] main.editorial-page .ep-network :is(.ep-node,.ep-network-foot){color:#34302d!important}
html[data-theme="dark"] main.editorial-page .ep-network .ep-node--central{color:#fff!important}
html[data-theme="dark"] main.editorial-page .ep-dashboard-head{background:#181a1c!important;color:#fff!important}

/* Dark theme — project request: override the global V9 light section background. */
html[data-theme="dark"] main#conteudo.neo-site--project-request,
html[data-theme="dark"] main#conteudo.neo-site--project-request > .neo-inner-hero,
html[data-theme="dark"] main#conteudo.neo-site--project-request > .neo-section {
  background:#14181e!important; background-image:none!important; color:#f2f4f7!important;
}
html[data-theme="dark"] main#conteudo.neo-site--project-request .neo-inner-hero h1 {color:#f2f4f7!important}
html[data-theme="dark"] main#conteudo.neo-site--project-request .neo-inner-hero .neo-lead {color:#c8d1dc!important}
html[data-theme="dark"] main#conteudo.neo-site--project-request .neo-inner-hero .neo-eyebrow {color:#fc995b!important}


/* V6 — Sobre nós e Contactos: apenas tema escuro. */
html[data-theme="dark"] main#conteudo.about-editorial,
html[data-theme="dark"] main#conteudo.contact-editorial {background:#14181e!important;color:#f2f4f7!important}
html[data-theme="dark"] main.about-editorial :is(.about-hero,.about-services,.about-work),
html[data-theme="dark"] main.contact-editorial :is(.contact-editorial-hero,.contact-paths,.contact-quick){background:#14181e!important;color:#f2f4f7!important}
html[data-theme="dark"] main.about-editorial :is(.about-hero,.about-services,.about-work,.about-end) :is(h1,h2,h3),
html[data-theme="dark"] main.contact-editorial :is(.contact-editorial-hero,.contact-paths,.contact-quick) :is(h1,h2,h3){color:#f2f4f7!important}
html[data-theme="dark"] main.about-editorial :is(.about-hero,.about-services,.about-work) p:not(.neo-eyebrow),
html[data-theme="dark"] main.contact-editorial :is(.contact-editorial-hero,.contact-paths,.contact-quick) p:not(.neo-eyebrow){color:#c9d2dc!important}
html[data-theme="dark"] main.about-editorial .about-split{background:#101418!important;color:#f2f4f7!important}
html[data-theme="dark"] main.about-editorial .about-split h2{color:#f2f4f7!important}
html[data-theme="dark"] main.about-editorial .about-split p:not(.neo-eyebrow){color:#cbd4dc!important}
html[data-theme="dark"] main.about-editorial .about-services article,
html[data-theme="dark"] main.contact-editorial .contact-paths__grid>a{background:#252d37!important;color:#f2f4f7!important;border-color:#44515f!important}
html[data-theme="dark"] main.about-editorial .about-services article :is(h2,a),
html[data-theme="dark"] main.contact-editorial .contact-paths__grid>a :is(h2,strong){color:#f2f4f7!important}
html[data-theme="dark"] main.about-editorial .about-services article p,
html[data-theme="dark"] main.contact-editorial .contact-paths__grid>a p{color:#cbd4dd!important;opacity:1!important}
html[data-theme="dark"] main.about-editorial :is(.about-services article>span,.about-work .neo-eyebrow),
html[data-theme="dark"] main.contact-editorial .contact-paths__grid>a>span{color:#ffa46b!important;opacity:1!important}
html[data-theme="dark"] main.about-editorial .about-work{border-color:#3c4957!important}
html[data-theme="dark"] main.about-editorial .about-work__grid p{border-color:#526171!important}
html[data-theme="dark"] main.about-editorial .about-work__grid :is(strong,span){color:#f2f4f7!important}
html[data-theme="dark"] main.about-editorial .about-work__grid span{color:#c7d0d9!important}
html[data-theme="dark"] main.about-editorial .about-end{background:#222a34!important;color:#f2f4f7!important}
html[data-theme="dark"] main.contact-editorial .contact-quick__inner{border-color:#44515f!important}
html[data-theme="dark"] main.contact-editorial .contact-quick a{color:#f2f4f7!important}
html[data-theme="dark"] main.contact-editorial .contact-quick a:hover,
html[data-theme="dark"] main.about-editorial .about-services article a:hover{color:#ffa46b!important}
/* Formulário e informações de contacto partilhados. */
html[data-theme="dark"] main.contact-editorial .neo-section--contact{background:#14181e!important;color:#f2f4f7!important}
html[data-theme="dark"] main.contact-editorial :is(.neo-contact-info,.contact-form--surface){background:#252d37!important;border-color:#44515f!important;color:#f2f4f7!important}
html[data-theme="dark"] main.contact-editorial :is(.neo-contact-info,.contact-form--surface) :is(h2,h3,label,strong){color:#f2f4f7!important}
html[data-theme="dark"] main.contact-editorial .neo-contact-info :is(p,small){color:#cbd4dd!important}
html[data-theme="dark"] main.contact-editorial .neo-contact-list :is(a,div){color:#f2f4f7!important;border-color:#44515f!important}
html[data-theme="dark"] main.contact-editorial .contact-form--surface :is(input,textarea,select){background:#19212a!important;color:#f2f4f7!important;border-color:#526070!important}
html[data-theme="dark"] main.contact-editorial .contact-form--surface :is(input,textarea)::placeholder{color:#aebbc8!important}
html[data-theme="dark"] main.contact-editorial .contact-form--surface .checkbox a{color:#ffa46b!important}
html[data-theme="dark"] main.contact-editorial .contact-form--surface .btn--dark{background:#f27c2d!important;color:#15191e!important}


/* V24 — Portfolio, repairs and technology pages: dark palette only.
   Keep diagrams, photographs, dark sections and orange CTAs readable. */
html[data-theme="dark"] main.portfolio-v20,
html[data-theme="dark"] main.repair-page,
html[data-theme="dark"] main.tech-pages{background:#14181e!important;color:#f1f3f6!important}
html[data-theme="dark"] main.portfolio-v20 :is(.portfolio-feature--tour,.portfolio-contact),
html[data-theme="dark"] main.repair-page :is(.repair-section,.repair-end),
html[data-theme="dark"] main.tech-pages :is(.tech-section,.tech-end){background-color:#14181e!important;color:#f1f3f6!important}
html[data-theme="dark"] main:is(.portfolio-v20,.repair-page,.tech-pages) :is(h1,h2,h3,h4,h5,h6){color:#f2f4f7}
html[data-theme="dark"] main:is(.portfolio-v20,.repair-page,.tech-pages) :is(p,li,small,.tech-lead,.repair-kicker,.tech-kicker,.portfolio-kicker){color:#c4cdd7}
html[data-theme="dark"] main.portfolio-v20 :is(.portfolio-intro__grid>div p,.portfolio-intro-label p:last-child,.portfolio-feature__copy>p:not(.portfolio-kicker),.portfolio-confidential p:last-child,.portfolio-contact__grid>div:last-child p,.portfolio-flow-step small,.portfolio-visual--flow>p),
html[data-theme="dark"] main.repair-page :is(.repair-section-heading>p:last-child:not(.repair-kicker),.repair-hub-hero__grid>div>p:not(.repair-kicker),.repair-computer-hero__in>div>p:not(.repair-kicker),.repair-laptop-hero__grid>div>p:not(.repair-kicker),.repair-phone-hero__in>p:not(.repair-kicker),.repair-tile p,.repair-faq details p,.repair-end__in p:not(.repair-kicker),.repair-symptoms p,.repair-editorial-grid p,.repair-tv-checks article p),
html[data-theme="dark"] main.tech-pages :is(.tech-lead,.tech-smallnote,.tech-section p,.tech-hero p,.tech-end p,.tech-faq p){color:#c4cdd7!important}
html[data-theme="dark"] main.portfolio-v20 :is(.portfolio-visual--flow,.portfolio-flow-step,.portfolio-confidential__icon),
html[data-theme="dark"] main.repair-page :is(.repair-categories>a,.repair-tile,.repair-editorial-grid article,.repair-tv-checks article,.repair-hub-photo span),
html[data-theme="dark"] main.tech-pages :is(.tech-support-panel,.tech-store-info,.tech-local-panel,.tech-refurb-art,.tech-tplink-visual,.tech-device-screen){background:#252d37!important;border-color:#45515f!important;color:#f1f3f6!important}
html[data-theme="dark"] main.portfolio-v20 :is(.portfolio-flow-step,.portfolio-feature__facts span,.portfolio-text-link),
html[data-theme="dark"] main.repair-page :is(.repair-categories>a,.repair-categories strong,.repair-categories span,.repair-hub-photo span,.repair-tile h3,.repair-editorial-grid h3,.repair-tv-checks h3),
html[data-theme="dark"] main.tech-pages :is(.tech-textlink,.tech-store-links a){color:#f1f3f6!important}
html[data-theme="dark"] main.portfolio-v20 :is(.portfolio-visual--erp,.portfolio-visual--industrial,.portfolio-web),
html[data-theme="dark"] main.repair-page :is(.repair-strip,.repair-tv-hero,.repair-note),
html[data-theme="dark"] main.tech-pages :is(.tech-band){background-color:#171b20!important;color:#f5f6f7!important}
html[data-theme="dark"] main.portfolio-v20 :is(.portfolio-visual--erp,.portfolio-visual--industrial,.portfolio-web),
html[data-theme="dark"] main.repair-page :is(.repair-strip,.repair-tv-hero,.repair-note){color:#f4f6f8!important}
html[data-theme="dark"] main.portfolio-v20 :is(.portfolio-visual--erp,.portfolio-visual--industrial,.portfolio-web) :is(h2,h3,strong),
html[data-theme="dark"] main.repair-page :is(.repair-strip,.repair-tv-hero,.repair-note) :is(h1,h2,h3,strong){color:#f4f6f8!important}
html[data-theme="dark"] main:is(.portfolio-v20,.repair-page,.tech-pages) :is(.portfolio-feature__facts span,.repair-faq details,.tech-faq details,.repair-symptoms article,.portfolio-index){border-color:#46515b!important}
html[data-theme="dark"] main.portfolio-v20 :is(.portfolio-intro h1 em,.portfolio-flow-step>span,.portfolio-web__tag),
html[data-theme="dark"] main.repair-page em,
html[data-theme="dark"] main.tech-pages em{color:#fa8a38!important}
html[data-theme="dark"] main.portfolio-v20 .portfolio-flow-step strong{color:#f2f4f7!important}
html[data-theme="dark"] main.repair-page .repair-editorial-grid .repair-feature{background:#303846!important}
html[data-theme="dark"] main.portfolio-v20 .portfolio-visual--flow{background:#252d37!important}
/* Preserve detailed mockup illustrations when their design depends on a light canvas. */
html[data-theme="dark"] main.tech-pages :is(.tech-network-flow,.tech-tplink-center){color:inherit}

/* Contactos — cartões de telefone, email, horário e morada no modo escuro.
   As regras anteriores alteravam a cor do texto sem substituir o fundo bege fixo. */
html[data-theme="dark"] main.contact-editorial .neo-contact-list > a,
html[data-theme="dark"] main.contact-editorial .neo-contact-list > div {
  background-color:#1a222c!important;
  border-color:#465363!important;
  color:#f2f4f7!important;
}
html[data-theme="dark"] main.contact-editorial .neo-contact-list > :is(a,div) :is(strong,span,b) {
  color:#f2f4f7!important;
  opacity:1!important;
}
html[data-theme="dark"] main.contact-editorial .neo-contact-list > :is(a,div) small {
  color:#c2cdd9!important;
  opacity:1!important;
}
html[data-theme="dark"] main.contact-editorial .neo-contact-list > :is(a,div) i {
  color:#fa8a38!important;
}
html[data-theme="dark"] main.contact-editorial .neo-contact-list > a:hover {
  background-color:#283442!important;
  border-color:#fa8a38!important;
}

/* Cabeçalho: impedir o display:block global de mostrar ambos os logótipos. */
html:not([data-theme="dark"]) .shell-brand img.shell-brand__logo--light{display:block!important}
html:not([data-theme="dark"]) .shell-brand img.shell-brand__logo--dark{display:none!important}
html[data-theme="dark"] .shell-brand img.shell-brand__logo--light{display:none!important}
html[data-theme="dark"] .shell-brand img.shell-brand__logo--dark{display:block!important}

/* Websites em 48 horas – modo escuro. Regras isoladas à página. */
html[data-theme="dark"] main#conteudo.ck48-page,
html[data-theme="dark"] main#conteudo.ck48-page > section:not(.ck48-formats){background:#171c23!important;color:#f2f4f7!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-hero{background:#171c23!important}
html[data-theme="dark"] main#conteudo.ck48-page :is(.ck48-hero h1,.section-heading h2,.ck48-contact .contact-card h2,.ck48-process .steps article h2,.ck48-terms h2,.ck48-features h3,.ck48-faq h2){color:#f2f4f7!important}
html[data-theme="dark"] main#conteudo.ck48-page :is(.ck48-intro,.ck48-kicker,.ck48-contact .contact-card p,.ck48-hero__shortcuts span,.ck48-process .steps article p,.ck48-features article p,.ck48-terms p,.ck48-terms li,.ck48-faq details p,.section-heading p){color:#cbd3df!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-textlink{color:#f5f6f7!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-hero__shortcuts span{background:#2a333e!important;border-color:#52606f!important}
html[data-theme="dark"] main#conteudo.ck48-page :is(.landing-feature-grid>article,.ck48-terms .feature-list,.ck48-contact .contact-form,.ck48-faq details){background:#252d37!important;border-color:#445363!important;color:#f2f4f7!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-contact{background:#1d252e!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-faq{background:#171c23!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-terms{background:#171c23!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-faq details summary{color:#f2f4f7!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-terms .feature-list :is(strong,span),
html[data-theme="dark"] main#conteudo.ck48-page .landing-feature-grid>article :is(h3,strong,span),
html[data-theme="dark"] main#conteudo.ck48-page .ck48-contact .contact-form :is(label,legend,strong){color:#f2f4f7!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-contact .contact-form :is(input,select,textarea){background:#19222d!important;color:#f2f4f7!important;border-color:#556575!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-contact .contact-form :is(input,textarea)::placeholder{color:#b5bec9!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-price{background:#252d37!important;border:1px solid #445363}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-price :is(strong,p){color:#f2f4f7!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-price .ck48-price__footnote{color:#cad0da!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-process .steps article{background:transparent!important}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-formats{background:#111315!important}

/* Websites 48h: etiqueta “O que está incluído” em modo escuro. */
html[data-theme="dark"] main#conteudo.ck48-page .ck48-features .section-heading .eyebrow {
  background:transparent!important;
  border-color:transparent!important;
  color:#fa934c!important;
  padding:0!important;
  border-radius:0!important;
}

/* Websites 48h — lista de condições comerciais: cada item tem fundo próprio. */
html[data-theme="dark"] main#conteudo.ck48-page .ck48-terms ul.feature-list > li {
  background:#303946!important;
  border:1px solid #526070!important;
  color:#f2f4f7!important;
  box-shadow:none!important;
}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-terms ul.feature-list > li strong {
  color:#fff!important;
  opacity:1!important;
}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-terms ul.feature-list > li span {
  color:#ced7e1!important;
  opacity:1!important;
}
html[data-theme="dark"] main#conteudo.ck48-page .ck48-terms > .container > div > .eyebrow {
  background:transparent!important;
  color:#fa934c!important;
  border-color:transparent!important;
}

/* Websites 48h: etiquetas em Contacto rápido e Perguntas frequentes. */
html[data-theme="dark"] main#conteudo.ck48-page :is(.ck48-contact, .ck48-faq) .eyebrow {
  background: transparent !important;
  border-color: transparent !important;
  color: #fa934c !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Floating actions: WhatsApp + back to top, side by side (desktop and mobile). */
.ck-floating-actions{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
}
.ck-floating-actions .whatsapp-float,
.ck-floating-actions .ck-back-to-top{
  position:static;
  inset:auto;
  width:54px;
  height:54px;
  min-width:54px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  line-height:1;
  transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease;
}
.ck-floating-actions .whatsapp-float{background:#25d366;color:#fff}
.ck-floating-actions .whatsapp-float i{font-size:28px}
.ck-floating-actions .ck-back-to-top{
  cursor:pointer;
  border:1px solid #3b414a;
  background:#171a1f;
  color:#fff;
  box-shadow:0 12px 28px rgba(0,0,0,.2);
}
.ck-floating-actions .ck-back-to-top i{font-size:25px}
.ck-floating-actions .ck-back-to-top[hidden]{display:none!important}
.ck-floating-actions :is(.whatsapp-float,.ck-back-to-top):hover{transform:translateY(-3px)}
.ck-floating-actions :is(.whatsapp-float,.ck-back-to-top):focus-visible{outline:3px solid #f48737;outline-offset:4px}
html[data-theme="dark"] .ck-floating-actions .ck-back-to-top{background:#333c47;border-color:#596675;color:#fff}
@media(max-width:640px){
  .ck-floating-actions{right:14px;bottom:calc(14px + env(safe-area-inset-bottom, 0px));gap:9px}
  .ck-floating-actions .whatsapp-float,
  .ck-floating-actions .ck-back-to-top{width:48px;height:48px;min-width:48px;border-radius:14px}
  .ck-floating-actions .whatsapp-float i{font-size:25px}
  .ck-floating-actions .ck-back-to-top i{font-size:23px}
}
@media(prefers-reduced-motion:reduce){.ck-floating-actions :is(.whatsapp-float,.ck-back-to-top){transition:none}}


/* Revisao 2026-10-15: contraste dark (modal, menu, legal e tecnologia). */
html[data-theme="dark"] .cookie-preferences__dialog,
html[data-theme="dark"] .shell-drawer__panel{
 background:#222932!important;color:#f4f6f9!important;border-color:#455464!important;
}
html[data-theme="dark"] .cookie-preferences__dialog :is(h1,h2,h3,p,strong,label),
html[data-theme="dark"] .shell-drawer__panel :is(h2,h3,summary,strong,a,span){color:#f4f6f9!important}
html[data-theme="dark"] .cookie-options label{
 background:#303a45!important;border:1px solid #526171!important;border-radius:16px;
}
html[data-theme="dark"] .cookie-options label :is(strong,span){color:#f5f6f8!important}
html[data-theme="dark"] .cookie-options label small{color:#c8d3e0!important;opacity:1!important}
html[data-theme="dark"] .cookie-options input{accent-color:#f28132}
html[data-theme="dark"] :is(.cookie-preferences__dialog,.shell-drawer__panel) :is(.modal__close,[data-drawer-close]){
 background:#344151!important;border:1px solid #627081!important;color:#fff!important;
}
html[data-theme="dark"] .shell-drawer__body :is(a,summary),
html[data-theme="dark"] .shell-drawer details{
 background:#303a45!important;border-color:#546271!important;color:#f5f6f8!important;
}
html[data-theme="dark"] .shell-drawer__bottom .btn--dark{
 background:#344151!important;color:#f4f5f7!important;
}
html[data-theme="dark"] main.legal-editorial-page,
html[data-theme="dark"] main.legal-editorial-page .legal-content{
 background:#151a20!important;color:#eff3f7!important;
}
html[data-theme="dark"] main.legal-editorial-page .narrow-content{
 background:#252d37!important;color:#f1f4f7!important;border-color:#475362!important;
}
html[data-theme="dark"] main.legal-editorial-page .narrow-content :is(h2,h3,h4,p,li,dt,dd,strong){
 color:#eff3f7!important;
}
html[data-theme="dark"] main.legal-editorial-page .narrow-content a{
 color:#ffae71!important;
}
html[data-theme="dark"] main.tech-pages :is(.tech-refurb-grid,.tech-usage-grid,.tech-tplink-cases) > *,
html[data-theme="dark"] main.tech-pages .tech-refurb-badge{
 background:#29323d!important;border-color:#455467!important;color:#f5f7fa!important;
}
html[data-theme="dark"] main.tech-pages :is(.tech-refurb-grid,.tech-usage-grid,.tech-tplink-cases) > * :is(h2,h3,h4,strong,b){
 color:#fff!important;opacity:1!important;
}
html[data-theme="dark"] main.tech-pages :is(.tech-refurb-grid,.tech-usage-grid,.tech-tplink-cases) > * :is(p,span,small,li){
 color:#cbd5df!important;opacity:1!important;
}
html[data-theme="dark"] main.tech-pages :is(.tech-refurb-grid,.tech-usage-grid,.tech-tplink-cases) i{
 color:#f68b43!important;
}
/* Website 48h - pagina propria, FAQ editorial, sem mudar os textos comerciais. */
.web48-refined .ck48-faq{padding:90px 0!important}
.web48-refined .ck48-faq>.container{display:grid;grid-template-columns:minmax(220px,.62fr) minmax(0,1.38fr);gap:clamp(35px,5vw,90px);align-items:start}
.web48-refined .ck48-faq .section-heading{position:sticky;top:125px;text-align:left;margin:0}
.web48-refined .ck48-faq .section-heading h2{font-size:clamp(2.3rem,4vw,4rem);line-height:1.05}
.web48-refined .ck48-faq .faq-list{display:grid;gap:12px;max-width:none;width:100%}
.web48-refined .ck48-faq .faq-list details{
 border:1px solid rgba(120,130,140,.25)!important;border-radius:17px!important;
 padding:0!important;overflow:hidden;background:#fff!important;
 box-shadow:0 5px 16px rgba(0,0,0,.035);
}
.web48-refined .ck48-faq .faq-list summary{
 display:flex;align-items:center;justify-content:space-between;gap:20px;
 padding:24px 26px!important;margin:0!important;font-weight:750;font-size:1.03rem;cursor:pointer;
}
.web48-refined .ck48-faq .faq-list details>p{
 padding:0 26px 25px!important;margin:0!important;line-height:1.8;
}
html[data-theme="dark"] .web48-refined .ck48-faq .faq-list details{
 background:#262f3a!important;border-color:#485665!important;box-shadow:none!important;
}
html[data-theme="dark"] .web48-refined .ck48-faq .faq-list details :is(summary,p){
 color:#f0f3f7!important;
}
html[data-theme="dark"] .web48-refined .ck48-faq .faq-list details>p{color:#cbd5e1!important}
@media(max-width:800px){
 .web48-refined .ck48-faq{padding:56px 0!important}
 .web48-refined .ck48-faq>.container{display:block}
 .web48-refined .ck48-faq .section-heading{position:static;margin-bottom:26px}
 .web48-refined .ck48-faq .faq-list summary{padding:19px!important}
 .web48-refined .ck48-faq .faq-list details>p{padding:0 19px 22px!important}
}


/* Website 48h — editorial rebuild with original content retained. */
.web48-refined .ck48-hero{padding:clamp(68px,8vw,130px) 0 92px!important}
.web48-refined .ck48-hero__inner{align-items:center;gap:clamp(35px,6vw,110px)}
.web48-refined .ck48-hero__copy h1{letter-spacing:-.06em;line-height:.98}
.web48-refined .ck48-price{border-radius:27px!important;padding:clamp(26px,3vw,46px)!important}
.web48-refined .ck48-features{padding-top:90px!important;padding-bottom:105px!important}
.web48-refined .landing-feature-grid{gap:15px!important}
.web48-refined .landing-feature-grid article{border-radius:19px!important;padding:28px!important;transition:transform .2s ease}
.web48-refined .landing-feature-grid article:hover{transform:translateY(-3px)}
.web48-refined .ck48-terms{padding:95px 0!important}
.web48-refined .ck48-terms .feature-list{display:grid;gap:11px}
.web48-refined .ck48-terms .feature-list li{border-radius:16px!important;padding:22px!important}
.web48-refined .ck48-formats{padding:88px 0!important}
.web48-refined .ck48-contact{padding:86px 0!important}
.web48-refined .ck48-contact .contact-form{border-radius:22px!important}
@media(max-width:800px){
 .web48-refined .ck48-hero{padding:45px 0 65px!important}
 .web48-refined .ck48-features,.web48-refined .ck48-terms,
 .web48-refined .ck48-formats,.web48-refined .ck48-contact{padding:55px 0!important}
 .web48-refined .landing-feature-grid article{padding:23px!important}
}
@media(prefers-reduced-motion:reduce){.web48-refined .landing-feature-grid article{transition:none}}

/* Uniformizacao global: titulo principal (H1) dos heroes de todas as paginas.
   Aplicado depois dos estilos individuais e media queries, incluindo mobile. */
main#conteudo :is(
  .neo-hero, .neo-inner-hero, .hero, .ck-mainhero, .ck-inner-hero,
  .home-lead, .ck-hero, .hero-carousel, .legal-editorial-hero,
  .about-hero, .contact-editorial-hero, .portfolio-intro,
  .ep-hero, .tech-hero, .repair-hub-hero, .repair-computer-hero,
  .repair-laptop-hero, .repair-phone-hero, .repair-tv-hero,
  .ck48-hero, .landing-48h-hero
) h1 {
  font-size: clamp(2.6rem, 5.6vw, 5.5rem) !important;
}

/* Correção transversal — páginas legais e rodapé do menu móvel (modo escuro). */
html[data-theme="dark"] body:has(main.legal-editorial-page),
html[data-theme="dark"] body:has(main.legal-editorial-page) main#conteudo,
html[data-theme="dark"] body:has(main.legal-editorial-page) main#conteudo.legal-editorial-page,
html[data-theme="dark"] body:has(main.legal-editorial-page) main#conteudo > section.legal-content,
html[data-theme="dark"] main.legal-editorial-page > section.legal-content.section,
html[data-theme="dark"] main.legal-editorial-page .legal-content.section {
 background:#151a20!important;background-color:#151a20!important;
}
html[data-theme="dark"] .shell-drawer__panel .shell-drawer__bottom,
html[data-theme="dark"] .shell-drawer__bottom,
html[data-theme="dark"] .shell-drawer__bottom .btn--dark,
html[data-theme="dark"] .shell-drawer__bottom .btn--accent {border-color:#445160!important}
html[data-theme="dark"] .shell-drawer__bottom {background:#222932!important;border-top-color:#445160!important}
html[data-theme="dark"] .shell-drawer__bottom .btn--dark {background:#303a45!important}
html[data-theme="dark"] .shell-drawer__bottom .btn--accent {background:#f27c2d!important;color:#14181e!important}
/* Não deixar os formulários legais com o fundo claro herdado. */
html[data-theme="dark"] main.legal-editorial-page .narrow-content {background:#252d37!important}
/* Página coberta enquanto a posição do idioma anterior é restaurada. */
html.ck-language-restoring body {visibility:hidden!important}

/* Corrige também a área de margem do corpo do drawer (inclusive em ecrãs pequenos). */
html[data-theme="dark"] .shell-drawer__panel,html[data-theme="dark"] .shell-drawer__bottom,
html[data-theme="dark"] .shell-drawer__bottom::before,html[data-theme="dark"] .shell-drawer__bottom::after {background-color:#222932!important}
html[data-theme="dark"] .shell-drawer__bottom .btn--dark {background-color:#303a45!important}
html[data-theme="dark"] .shell-drawer__bottom .btn--accent {background-color:#f27c2d!important}

/* Informação sobre o custo das chamadas — DL 59/2021, art. 3.º */
a[href^="tel:"] .phone-call-rate{display:block;font-size:10px;line-height:1.25;font-weight:400;letter-spacing:0;text-transform:none;white-space:normal;opacity:.85;margin-top:3px;color:inherit}
.shell-utility-bar__contacts a[href^="tel:"]{display:inline-flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:0}
.shell-utility-bar__contacts a[href^="tel:"] .phone-call-rate{font-size:9px;margin-top:1px}
.site-footer a[href^="tel:"] .phone-call-rate{font-size:11px;opacity:.85;margin:0 0 4px}
.neo-contact-list a[href^="tel:"] .phone-call-rate{font-size:11px}
.repair-actions a[href^="tel:"]{height:auto;min-height:52px;flex-direction:column;justify-content:center;gap:1px;text-align:center;padding-top:8px;padding-bottom:8px}
.repair-actions a[href^="tel:"] .phone-call-rate{font-size:10px}
@media(max-width:760px){.shell-utility-bar__contacts a[href^="tel:"] .phone-call-rate{font-size:8px;max-width:128px}.shell-utility-bar__contacts a[href^="tel:"]{line-height:1.15}}


/* Computek 2026: header contact alignment and compact mobile navigation */
@media (min-width:981px){
 .shell-utility-bar__contacts a[href^="tel:"]{align-items:flex-start}
 .shell-utility-bar__contacts .shell-phone-line{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
 .shell-utility-bar__contacts .shell-phone-line i{flex:none}
}
.ck-mobile-utility,.ck-mobile-shortcuts{display:none}
@media (max-width:980px){
 .shell-utility-bar{display:none!important}
 .ck-mobile-utility{display:block;background:#171a1f;color:#fff}
 .ck-mobile-utility__actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;max-width:460px;margin:auto}
 .ck-mobile-utility__actions a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:43px;padding:8px 4px;color:#fff!important;font-size:12px;font-weight:700;white-space:nowrap;text-decoration:none}
 .ck-mobile-utility__actions i{font-size:17px}
 .ck-mobile-utility__legal{text-align:center;background:#242830;padding:6px 10px;font-size:10px;line-height:1.35;color:#dce0e5}
 .ck-mobile-utility__legal a{color:inherit;font-weight:700;text-decoration:none}
 .ck-mobile-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:10px max(12px,calc((100vw - 1160px)/2));background:#fff}
 .ck-mobile-shortcuts a{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;min-width:0;min-height:72px;padding:9px 4px;border-radius:12px;background:#f3f3f3;color:#171a1f!important;text-align:center;text-decoration:none;font-weight:700;font-size:11px;line-height:1.25}
 .ck-mobile-shortcuts i{color:#ee6b00;font-size:22px}
 .ck-mobile-shortcuts .ck-mobile-shortcuts__featured{background:#fff0e5}
 html[data-theme="dark"] .ck-mobile-shortcuts{background:#1a2027}
 html[data-theme="dark"] .ck-mobile-shortcuts a{background:#29333d;color:#f4f6f9!important}
 html[data-theme="dark"] .ck-mobile-shortcuts .ck-mobile-shortcuts__featured{background:#453126}
 html[data-theme="dark"] .ck-mobile-utility{background:#11161b}
 html[data-theme="dark"] .ck-mobile-utility__legal{background:#202831}
}
@media(max-width:350px){.ck-mobile-shortcuts{gap:5px;padding:8px}.ck-mobile-shortcuts a{font-size:10px}.ck-mobile-utility__legal{font-size:9px}}
@media(min-width:981px){.ck-mobile-utility,.ck-mobile-shortcuts{display:none!important}}
