/* V46 targeted dark-mode contrast fixes for reported pages */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.services-detailed-grid,.service-catalog) .service-block-info h3,
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.services-detailed-grid,.service-catalog) .service-block-info p,
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.services-detailed-grid,.service-catalog) .service-features-list li{
  color:#edf5ff!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .service-page-btn{
  background:#172b45!important;color:#9bc6ff!important;border-color:#315074!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .service-page-btn:hover{
  background:#1d3b61!important;color:#fff!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .action-banner{
  background:#101c2e!important;border-color:#2b405b!important;color:#edf5ff!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .action-banner :is(h2,h3,p,span,strong){color:#edf5ff!important}

/* Gallery overlay must stay readable over photographs */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .gallery-overlay,
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .gallery-overlay *{
  color:#fff!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .gallery-card{
  background:#101c2e!important;border-color:#2b405b!important;
}

/* Pricing page custom cards */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.pro-price-card,.quick-rate,.pricing-demo-section .action-banner){
  background:#101c2e!important;border-color:#2b405b!important;color:#edf5ff!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .pro-price-card :is(h3,.demo-price,.demo-price small,.price-label,p),
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .quick-rate :is(strong,small,b),
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .quick-rate-head :is(h2,p),
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .pricing-note{
  color:#edf5ff!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .pricing-note{
  background:#14253b!important;border-color:#315074!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .price-demo-link{
  background:#172b45!important;color:#9bc6ff!important;border-color:#315074!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .quick-rate i{
  background:#172b45!important;color:#8fc0ff!important;
}

/* Downloads and government resource directory pages */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.section-banner,.resource-card,.no-results,.search-box){
  background:#101c2e!important;color:#edf5ff!important;border-color:#2b405b!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .section-banner :is(h2,p,.section-label),
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .resource-card :is(h3,p,.subcategory),
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .no-results :is(h3,p){
  color:#edf5ff!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .section-count{
  background:#172b45!important;color:#9bc6ff!important;border:1px solid #315074!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .icon-box{
  background:#172b45!important;color:#8fc0ff!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .badge{
  background:#153a2a!important;color:#7ee2a8!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .notice{
  background:#302b16!important;color:#f5e7a8!important;border-left-color:#e8b84b!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .notice :is(h3,p,li,strong,a){color:#f5e7a8!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .search-box input{
  background:#0c1829!important;color:#edf5ff!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .hero :is(.hero-tag,.hero-points,.hero-points span),
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-page-hero :is(.hero-tag,.hero-points,.hero-points span){
  color:#fff!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .visit-btn{color:#fff!important}

/* Premium services panel on directory pages */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-premium-master,
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-premium-list,
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-premium-list>a{
  background:#101c2e!important;border-color:#2b405b!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-premium-copy strong{color:#edf5ff!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-premium-copy small{color:#aebed2!important}
