/* Shared accessibility corrections applied after page-specific styles. */
html[data-theme="paper"],
body[data-theme="paper"] {
  --accent: #65491f !important;
  --gold: #65491f !important;
  --green: #4f463c !important;
  --t3: #574f47 !important;
  --text-3: #574f47 !important;
}

html[data-theme="paper"] label,
html[data-theme="paper"] .fine-print,
html[data-theme="paper"] .cert-note,
html[data-theme="paper"] .form-note,
html[data-theme="paper"] .footnote,
html[data-theme="paper"] footer p,
html[data-theme="paper"] .footer p,
html[data-theme="paper"] .foot-copy {
  color: #4f463c !important;
  -webkit-text-fill-color: #4f463c !important;
}

html[data-theme="paper"] .btn-primary,
html[data-theme="paper"] .read-btn,
html[data-theme="paper"] .pkg-btn,
html[data-theme="paper"] .plan-cta.primary,
html[data-theme="paper"] .tier-btn.primary,
html[data-theme="paper"] .filter-btn.active,
html[data-theme="paper"] .regional-mobile-dock a:first-child,
html[data-theme="paper"] .training-mobile-dock a:first-child {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-theme="paper"] .nav-cta,
html[data-theme="paper"] .topnav-cta {
  color: #173f35 !important;
  -webkit-text-fill-color: #173f35 !important;
}

html[data-theme="paper"] .page-blog-fr footer a {
  color: #173f35 !important;
  -webkit-text-fill-color: #173f35 !important;
}

#passwordGate [style*="animation"],
#docGate [style*="animation"],
#planGate [style*="animation"] {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

#passwordGate,
#docGate,
#planGate {
  background: #f7f0e5 !important;
  color: #173f35 !important;
}

body:has(#passwordGate:not(.unlocked)) > :not(#passwordGate):not(style):not(script),
body:has(#docGate:not(.unlocked)) > :not(#docGate):not(style):not(script),
body:has(#planGate:not(.unlocked)) > :not(#planGate):not(style):not(script),
body:has(#nsGate) > :not(#nsGate):not(style):not(script) {
  visibility: hidden !important;
}

#passwordGate h1,
#docGate h1,
#planGate h1 {
  color: #173f35 !important;
  -webkit-text-fill-color: #173f35 !important;
}

#passwordGate p,
#docGate p,
#planGate p {
  color: #4f463c !important;
  -webkit-text-fill-color: #4f463c !important;
}

html[data-theme="paper"] .btn,
html[data-theme="paper"] a.btn,
html[data-theme="paper"] button.submit,
html[data-theme="paper"] #copyBtn,
html[data-theme="paper"] .pkg-btn,
html[data-theme="paper"] .btn-cert {
  background: #173f35 !important;
  background-color: #173f35 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-theme="paper"] .read-btn.secondary,
html[data-theme="paper"] .back-btn,
html[data-theme="paper"] #blogFilterStatus,
html[data-theme="paper"] .section-tag,
html[data-theme="paper"] .feat-card h3,
html[data-theme="paper"] .showcase-page h2,
html[data-theme="paper"] .showcase-page p,
html[data-theme="paper"] .showcase-page .filter-btn,
html[data-theme="paper"] .showcase-page .showcase-nav a,
html[data-theme="paper"] .scout-brand,
html[data-theme="paper"] .scout-optional,
html[data-theme="paper"] .scout-main a:not(.btn) {
  color: #173f35 !important;
  -webkit-text-fill-color: #173f35 !important;
}

html[data-theme="paper"] body.page-report-download {
  background: #f5f0e6 !important;
  color: #1c1810 !important;
}

html[data-theme="paper"] .landing-card {
  background: #fffaf1 !important;
  border-color: rgba(28, 24, 16, .18) !important;
}

html[data-theme="paper"] .landing-card h1,
html[data-theme="paper"] .landing-card p,
html[data-theme="paper"] .landing-card label {
  color: #1c1810 !important;
  -webkit-text-fill-color: #1c1810 !important;
}

html[data-theme="paper"] .landing-card button {
  background: #65491f !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-theme="paper"] p.sub {
  color: #4f463c !important;
  -webkit-text-fill-color: #4f463c !important;
}

.page-consulting #consultingForm label {
  color: #d7d7dc !important;
  -webkit-text-fill-color: #d7d7dc !important;
}

.page-consulting .btn-primary,
.page-consulting .pkg-btn,
.page-consulting #consultingRouteCta,
.page-consulting .form-submit {
  background: #a94700 !important;
  border-color: #a94700 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Page-specific contrast corrections retained across the legacy page themes. */
body .daily-pulse h3,
body #tab-btn-video,
body #blogFilterStatus,
body .bonfire-nav a,
body .portal-back,
body .service-area h3,
body .services-grid h3,
body .feat-card h3,
body .section-tag,
body .roi-intro p,
body .scout-brand,
body .scout-optional,
body .scout-main a:not(.btn) {
  color: #173f35 !important;
  -webkit-text-fill-color: #173f35 !important;
}

body .pricing-nav a,
body .pricing-nav li,
body .pricing-nav .nav-brand,
body .nav-pricing a,
body .nav-pricing li,
body .nav-pricing .nav-brand {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.page-pricing-fr nav a,
.page-pricing-fr nav li,
.page-pricing-fr nav .nav-brand {
  color: #f7f0e5 !important;
  -webkit-text-fill-color: #f7f0e5 !important;
}

.page-bonfire-scout .nav-links a {
  color: #173f35 !important;
  -webkit-text-fill-color: #173f35 !important;
}

.page-ai-receptionist #tab-btn-video,
#blogFilterStatus,
.page-client-portal .gate-nav a {
  color: #e7e7ea !important;
  -webkit-text-fill-color: #e7e7ea !important;
}

.page-neural-scout .scout-brand,
.page-neural-scout .scout-optional {
  color: #f7f0e5 !important;
  -webkit-text-fill-color: #f7f0e5 !important;
}

.page-neural-scout main a:not(.btn) {
  color: #06271f !important;
  -webkit-text-fill-color: #06271f !important;
}

html[data-theme="paper"] .page-neural-scout footer .foot-links a:not(.btn) {
  color: #06271f !important;
  -webkit-text-fill-color: #06271f !important;
}

.page-neural-chat-demo .hero h1 .line1,
.page-neural-chat-demo .hero-sub,
.page-neural-chat-demo .hero-sub strong,
.page-neural-chat-demo .section-tag,
.page-neural-chat-demo h2 {
  color: #173f35 !important;
  -webkit-text-fill-color: #173f35 !important;
}

.gate-nav a {
  color: #e7e7ea !important;
  -webkit-text-fill-color: #e7e7ea !important;
}

h3[style*="var(--gold"] {
  color: #65491f !important;
  -webkit-text-fill-color: #65491f !important;
}
