/* CliviXo v5.4.6 — Work / Concept Labs dark-card readability hotfix
   Fixes the nested-copy selector gap left by v5.4.3. This stylesheet loads last. */
:root{
  --v546-work-on-dark:#ffffff;
  --v546-work-on-dark-muted:#eeeafb;
  --v546-work-on-dark-soft:#e5dfff;
}

/* Work page — CliviXo Domains & Cloud flagship card.
   IMPORTANT: scope only the dark chrome/copy; preserve the nested white search preview's dark text. */
body.work-page-v4 main .work-lab-v41.domains .lab-window-v41,
body.work-page-v4 main .work-lab-v41.domains .lab-window-v41 b{
  color:var(--v546-work-on-dark-soft)!important;
  opacity:1!important;
  text-shadow:none!important;
}
body.work-page-v4 main .work-lab-v41.domains .lab-copy-v41 > span{
  color:#f4f0ff!important;
  opacity:1!important;
  font-size:9px!important;
  text-shadow:none!important;
}
body.work-page-v4 main .work-lab-v41.domains .lab-copy-v41 > h2{
  color:var(--v546-work-on-dark)!important;
  opacity:1!important;
  text-shadow:none!important;
}
body.work-page-v4 main .work-lab-v41.domains .lab-copy-v41 > p{
  color:var(--v546-work-on-dark-muted)!important;
  opacity:1!important;
  font-size:13px!important;
  line-height:1.55!important;
  font-weight:500!important;
  text-shadow:none!important;
}
body.work-page-v4 main .work-lab-v41.domains .lab-copy-v41 > b{
  color:var(--v546-work-on-dark)!important;
  opacity:1!important;
  font-size:11px!important;
  text-shadow:none!important;
}

/* Preserve the light domain-search preview inside the same dark card. */
body.work-page-v4 main .work-lab-v41.domains .lab-domain-search-v41,
body.work-page-v4 main .work-lab-v41.domains .lab-domain-search-v41 :where(small,strong){
  color:#25183c!important;
  opacity:1!important;
}
body.work-page-v4 main .work-lab-v41.domains .lab-domain-search-v41 strong span{
  color:#6d43e6!important;
}
body.work-page-v4 main .work-lab-v41.domains .lab-domain-search-v41 i{
  background:#25183c!important;
  color:#fff!important;
}

/* Older Work dark-domain card variant: nested copy remains readable too. */
body.work-page-v4 main .work-card-v4.domain :where(.copy,.content,.work-card-copy-v4) :where(h2,h3,strong,b){
  color:#fff!important;
  opacity:1!important;
}
body.work-page-v4 main .work-card-v4.domain :where(.copy,.content,.work-card-copy-v4) p{
  color:#eeeafb!important;
  opacity:1!important;
  text-shadow:none!important;
}


/* CLX-QA-V108-SHARED-ACCESSIBILITY
   One shared remediation layer for the sitewide footer hit-area family and Firefox TechnOrgan footer geometry. */
.footer-group-v49 .links-v49 a,
footer .links-v49 a {
  min-height: 24px;
  padding-block: 3px;
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
}
footer .technorgan-credit {
  height: auto !important;
  min-height: 76px !important;
  overflow: visible !important;
  white-space: normal !important;
  align-items: flex-start !important;
}

/* CLX-QA-V1010B-TEXT-FIRST-PAINT
   Mobile LCP text is first-paint content. Do not override hero containers, transforms,
   filters or clip-paths: those broad overrides caused unnecessary layout work in v1.0.9x. */
@media (max-width: 767px) {
  .flagship-hero .hero-copy-v4 h1,
  .flagship-hero .hero-copy-v4 > p,
  .flagship-hero [data-hero-description],
  .inner-hero h1,
  .inner-hero > p,
  .v4-inner-hero h1,
  .v4-inner-hero > p,
  .insights-hero-v47 h1,
  .insights-hero-v47 > p,
  .contact-intro h1,
  .contact-intro > p {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
  }

  /* Lighthouse exposed real contrast misses on the pricing estimator/marquee. */
  .estimate-tabs button:not(.active) { color: #5f6573 !important; }
  .technology-track span.google { color: #3568c7 !important; }

  /* CLX-QA-V1010B-HOME-NONCOMPOSITED-FREEZE
     Fresh 3-run Lighthouse evidence proved Home's remaining TBT is style/layout variability,
     not script evaluation. Freeze only the measured non-composited animations on Home mobile. */
  body.clx-home-performance-v1010b .visual-depth-card-v44,
  body.clx-home-performance-v1010b .stream-live-v54,
  body.clx-home-performance-v1010b .hero-gradient-v54,
  body.clx-home-performance-v1010b .technorgan-credit__copy strong b,
  body.clx-home-performance-v1010b .technorgan-credit::before {
    animation: none !important;
    transition: none !important;
  }
}

/* CLX-QA-V1010K-TECH-BRAND-CONTRAST
   Keep recognizable brand hues while meeting normal-text WCAG contrast once the marquee is revealed. */
.technology-track span.google { color: #3568c7 !important; }
.technology-track span.cloudflare { color: #b54d00 !important; }

/* CLX-QA-V1010L-PRICING-MOBILE-CERTIFICATION
   Static mobile treatment avoids post-paint 3D/layout work while preserving the visual design. */
@media(max-width:720px){
  body.clx-pricing-performance-v1010l .estimate-tabs button{color:#344054!important;background:#fff!important}
  body.clx-pricing-performance-v1010l .estimate-tabs button.active{color:#4127b5!important}
  body.clx-pricing-performance-v1010l .estimate-controls label,
  body.clx-pricing-performance-v1010l .estimate-controls legend{color:#344054!important}
  body.clx-pricing-performance-v1010l .compare-table:focus{outline:3px solid #6244d0;outline-offset:4px}
  body.clx-pricing-performance-v1010l .reveal{opacity:1!important;transform:none!important;animation:none!important;transition:none!important}
  body.clx-pricing-performance-v1010l .technology-track{animation:none!important;transform:none!important}
}

/* CLX-QA-V1010M-STATIC-A11Y
   Replace runtime contrast/layout probing with deterministic CSS on Axe-proven nodes. */
.demo-site .demo-kicker,
.demo-site .demo-immersive-head-v41 > p,
.demo-site .concept-disclaimer-v42 > p,
.demo-site .demo-conversion-dock span small,
.demo-site #why > div:nth-child(2) > p {
  color:#475467!important;
  -webkit-text-fill-color:#475467!important;
  opacity:1!important;
  text-shadow:none!important;
}
.demo-site article a[href$="#contact"] {
  color:#344054!important;
  -webkit-text-fill-color:#344054!important;
  opacity:1!important;
  text-shadow:none!important;
}
.estimate-tabs button { color:#344054!important; background:#fff!important; }
.estimate-tabs button.active { color:#4127b5!important; }

/* CLX-QA-V1010M-PRICING-POST-SONIC-CONTRAST */
.pricing-cloud-copy-v4 > h2 {
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* CLX-QA-V1010M-PRICING-OPAQUE-HEADING */
.pricing-cloud-copy-v4 > h2 {
  background:#fff!important;
  background-image:none!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  isolation:isolate!important;
}

/* CLX-QA-V1010N-MOBILE-NONCOMPOSITED-FREEZE
   Lighthouse 3-run evidence: touch viewports were spending main-thread time on decorative non-composited animations.
   Freeze only measured decoration families; desktop motion remains unchanged. */
@media (max-width: 767px) {
  .client-experience-v43 .gradient-word,
  .client-experience-v43 .visual-depth-card-v44,
  .client-experience-v43 .lab-flow-v41 span,
  .technorgan-credit__copy strong b,
  .technorgan-credit::before {
    animation: none !important;
    transition: none !important;
  }
  .client-experience-v43 .gradient-word {
    background-position: 50% 50% !important;
  }
  .client-experience-v43 .visual-depth-card-v44 {
    transform: none !important;
  }
}

/* CLX-QA-V1010N4-MOBILE-BELOW-FOLD-CONTAINMENT
   Lighthouse traces show document-level Style/Layout dominating TBT on long mobile pages.
   Keep hero + first content section eager; defer only deeper below-fold layout and footer rendering. */
@media (max-width: 767px) {
  body.pricing-page-v4 main#main > section:nth-child(n+2),
  body.work-page-v4 main#main > section:nth-child(n+2),
  body.about-page-v1010n main#main > section:nth-child(n+2),
  body.pricing-page-v4 .universal-footer-v49,
  body.work-page-v4 .universal-footer-v49,
  body.about-page-v1010n .universal-footer-v49 {
    content-visibility: auto;
    contain-intrinsic-size: auto 1200px;
  }
}
/* CLX-QA-V1010N6-PRICING-ESTIMATOR-CONTAINMENT
   Keep estimator intro eager; defer the mobile controls panel until it approaches the viewport. */
@media (max-width: 720px) {
  body.clx-pricing-performance-v1010l .estimate-panel {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
    contain: layout paint style;
  }
}


/* CLX-QA-V1010N7-ESTIMATOR-CTA-CONTRAST: white estimator CTA must keep a dark label despite the global primary-button foreground. */
.estimate-result .button-primary{color:#35266f!important}

/* CLX-QA-V1010N8-CONTACT-BELOW-FOLD-CONTAINMENT
   The mobile contact form begins below the first viewport; defer its layout and footer until they approach view. */
@media (max-width: 767px) {
  body.contact-page-v1010n8 .contact-form-shell-v54,
  body.contact-page-v1010n8 .universal-footer-v49 {
    content-visibility: auto;
    contain-intrinsic-size: auto 1360px;
  }
}

/* CLX-QA-V1010N10-MOBILE-FIRST-RENDER
   Mobile cards keep their static design without load-time 3D layers. Long Home/Insights
   content remains available but skips off-screen style/layout work until it approaches view. */
@media (max-width: 767px) {
  .visual-depth-card-v44 {
    transform: none !important;
    transform-style: flat !important;
    will-change: auto !important;
    transition: none !important;
  }
  .visual-depth-card-v44 > *:not(.fx-glow-v44):not(.fx-sheen-v44):not(.fx-depth-v44) {
    transform: none !important;
  }
  body.clx-home-performance-v1010b main#main > section:nth-child(n+2),
  body.clx-home-performance-v1010b .universal-footer-v49 {
    content-visibility: auto;
    contain-intrinsic-size: auto 1600px;
  }
  body.insights-v47 .insight-grid-v47 {
    content-visibility: auto;
    contain-intrinsic-size: auto 20000px;
  }
  .universal-footer-v49 {
    content-visibility: auto;
    contain-intrinsic-size: auto 1900px;
  }
  .index-card,
  .insight-card-v47,
  .pricing-card,
  .work-lab-v41,
  .about-values article {
    content-visibility: auto;
    contain-intrinsic-size: auto 360px;
  }
  body.insights-v47 .insight-feature-v47 .art::before,
  body.insights-v47 .insight-feature-v47 .art::after {
    animation: none !important;
    transition: none !important;
  }
  body.work-page-v4 .work-hero-orbit-v41 *,
  body.work-page-v4 .lab-gravity-v41::before,
  body.work-page-v4 .lab-gravity-v41::after {
    animation: none !important;
    transition: none !important;
  }
}

/* CLX-FRONTEND-OS-001 — reduced-motion closure.
   Footer text links remain ordinary navigation under the 24px general-target floor; primary CTAs retain the 44px important-target floor. */
@media (prefers-reduced-motion: reduce) {
  .social-icon-v45,
  body.universal-v46 .capability-card-v4 .capability-visual-v45 img {
    transition-duration: .01ms !important;
  }
}

/* CLX-FRONTEND-OS-001 — measured mobile section containment.
   Clean 3-run Q8 evidence isolated Work/Industries TBT to below-fold style/layout.
   Preserve first-view rendering; defer only measured lower sections until they approach view. */
@media (max-width: 767px) {
  body.work-page-v4 main#main > .work-gallery-v41 {
    content-visibility: auto;
    contain-intrinsic-size: auto 1900px;
  }
  body.work-page-v4 main#main > .industry-labs-v41 {
    content-visibility: auto;
    contain-intrinsic-size: auto 2500px;
  }
  body.work-page-v4 main#main > .work-possibility-v43 {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
  }
  body.industries-page-v1010o main#main > .section {
    content-visibility: auto;
    contain-intrinsic-size: auto 2650px;
  }
}

/* CLX-FRONTEND-OS-001 — Services/Insights mobile layout isolation.
   Keep first-view content eager; isolate long lower content so style/layout work cannot dominate initial interaction. */
@media (max-width: 767px) {
  body.services-page-v1010p main#main > .section,
  body.services-page-v1010p .index-grid,
  body.services-page-v1010p .index-grid > .index-card:nth-child(n+2),
  body.insights-v47 .insight-feature-v47 {
    contain: layout style paint;
  }
  body.services-page-v1010p .index-grid > .index-card:nth-child(n+2) {
    content-visibility: auto;
    contain-intrinsic-size: auto 380px;
  }
  body.insights-v47 .insight-feature-v47 {
    content-visibility: auto;
    contain-intrinsic-size: auto 820px;
  }
}
/* CLX-FRONTEND-OS-001 — semantic-only heading utility. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
