/*
 * Dark-surface contrast guard
 * Keeps Digonest headings and supporting copy readable when the active theme
 * applies global dark text colours to headings, paragraphs, links, or strong tags.
 */

/* Primary headings and prominent values. */
body .digo-article-cta h2,
body .digo-404-talk h2,
body .digo-newsletter h2,
body .ddf h1,
body .ddf h2,
body .ddf h3,
body .ddf h4,
body .ddf h5,
body .ddf h6,
body.digo-home-page .dh-work-box h1,
body.digo-home-page .dh-work-box h2,
body.digo-home-page .dh-work-box h3,
body.digo-home-page .dh-work-box h4,
body.digo-home-page .dh-cta-box h1,
body.digo-home-page .dh-cta-box h2,
body.digo-home-page .dh-cta-box h3,
body.digo-home-page .dh-cta-box h4,
body.digo-home-page .dh2-portfolio .dh2-section-head h2,
body.digo-home-page .dh2-portfolio .dh2-portfolio-body h3,
body.digo-home-page .dh2-cta-card h2,
body.digo-home-page .dh2-blog-placeholder b,
body.digo-services-page .digo-stats-bar strong,
body.digo-services-page .digo-cta-content h3,
body.digo-solutions-page .digo-solutions-process-card h1,
body.digo-solutions-page .digo-solutions-process-card h2,
body.digo-solutions-page .digo-solutions-process-card h3,
body.digo-solutions-page .digo-solutions-process-card h4,
body.digo-portfolio-page .digo-pf-cta h2,
body.digo-websites-page .digo-web-cta-box h4,
body.digo-ws-page .digo-ws-hero-title,
body.digo-ws-page .digo-ws-hero-card-price,
body.digo-single-plugin-page .hero-title,
body.digo-start-project-page .dsp-purple-card h2,
body .digo-banner-container .digo-banner-title,
body .digo-search-card-placeholder h2,
body .digo-search-card-placeholder h3 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(2, 6, 23, .08);
}

/* Supporting copy receives a softer white for hierarchy without losing contrast. */
body .digo-article-cta p,
body .digo-404-talk p,
body .digo-newsletter p,
body .ddf p,
body .ddf li,
body .ddf .ddf-desc,
body.digo-home-page .dh-work-box p,
body.digo-home-page .dh-proj-card p,
body.digo-home-page .dh-cta-box p,
body.digo-home-page .dh2-portfolio .dh2-section-head p,
body.digo-home-page .dh2-portfolio .dh2-portfolio-body p,
body.digo-home-page .dh2-cta-card p,
body.digo-home-page .dh2-blog-placeholder small,
body.digo-services-page .digo-stats-bar .digo-stat-text span,
body.digo-services-page .digo-cta-content p,
body.digo-solutions-page .digo-solutions-process-card p,
body.digo-portfolio-page .digo-pf-cta p,
body.digo-websites-page .digo-web-cta-box p,
body.digo-ws-page .digo-ws-hero-desc,
body.digo-ws-page .digo-ws-hero-card-meta,
body.digo-single-plugin-page .hero-desc,
body.digo-single-plugin-page .hero-rating-txt,
body.digo-single-plugin-page .hero-chip,
body .digo-banner-container p {
    color: #dbe4f3 !important;
    -webkit-text-fill-color: #dbe4f3 !important;
}

/* Eyebrows, kickers and muted labels stay distinct from body copy. */
body .digo-article-cta > div > span,
body .digo-404-talk > div > span,
body.digo-home-page .dh2-portfolio .dh2-eyebrow,
body.digo-home-page .dh2-cta-copy .dh2-eyebrow,
body.digo-ws-page .digo-ws-hero-kicker,
body.digo-single-plugin-page .hero-eyebrow,
body.digo-portfolio-page .digo-pf-cta .digo-pf-eyebrow {
    color: #cfc5ff !important;
    -webkit-text-fill-color: #cfc5ff !important;
}

/* Preserve readable text on transparent and coloured actions. */
body.digo-home-page .dh-work-box .dh-proj-card,
body.digo-home-page .dh-work-box .dh-proj-card:visited,
body.digo-home-page .dh2-portfolio .dh2-btn-dark-outline,
body.digo-home-page .dh2-portfolio .dh2-btn-dark-outline:visited,
body.digo-services-page .digo-cta-btn,
body.digo-services-page .digo-cta-btn:visited,
body.digo-solutions-page .digo-solution-cta,
body.digo-solutions-page .digo-solution-cta:visited,
body.digo-portfolio-page .digo-pf-cta-actions a:not(:first-child),
body.digo-portfolio-page .digo-pf-cta-actions a:not(:first-child):visited,
body.digo-ws-page .digo-ws-hero-btn-primary,
body.digo-ws-page .digo-ws-hero-btn-primary:visited,
body.digo-ws-page .digo-ws-hero-btn-ghost,
body.digo-ws-page .digo-ws-hero-btn-ghost:visited,
body.digo-ws-page .digo-ws-hcbtn-p,
body.digo-ws-page .digo-ws-hcbtn-p:visited,
body.digo-ws-page .digo-ws-hcbtn-o,
body.digo-ws-page .digo-ws-hcbtn-o:visited,
body.digo-single-plugin-page .hero .btn-buy,
body.digo-single-plugin-page .hero .btn-buy:visited,
body.digo-single-plugin-page .hero .btn-demo,
body.digo-single-plugin-page .hero .btn-demo:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Light actions on dark surfaces intentionally use dark purple text. */
body .digo-article-cta > a,
body .digo-article-cta > a:visited,
body .digo-404-talk > a,
body .digo-404-talk > a:visited,
body.digo-portfolio-page .digo-pf-cta-actions a:first-child,
body.digo-portfolio-page .digo-pf-cta-actions a:first-child:visited,
body.digo-websites-page .digo-web-cta-btn,
body.digo-websites-page .digo-web-cta-btn:visited,
body.digo-start-project-page .dsp-btn-light,
body.digo-start-project-page .dsp-btn-light:visited {
    color: #2f1b78 !important;
    -webkit-text-fill-color: #2f1b78 !important;
}

/* Component-level polish for the article CTA shown across blog posts. */
body .digo-article-cta {
    border: 1px solid rgba(255, 255, 255, .13);
    box-shadow: 0 22px 55px rgba(17, 24, 39, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}
body .digo-article-cta > a {
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: 0 10px 24px rgba(5, 8, 30, .18);
}
body .digo-article-cta > a:hover,
body .digo-article-cta > a:focus-visible {
    color: #4c1d95 !important;
    -webkit-text-fill-color: #4c1d95 !important;
    background: #f5f3ff;
    transform: translateY(-1px);
}

/* Inputs placed on dark cards must not inherit the theme's dark input text. */
body .digo-newsletter input,
body .ddf input {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
body .digo-newsletter input::placeholder,
body .ddf input::placeholder {
    color: #b9c3dc !important;
    -webkit-text-fill-color: #b9c3dc !important;
    opacity: 1;
}

/* Preserve intentional gradient and muted-price treatments inside white headings. */
body.digo-home-page .dh2-cta-card h2 span {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
body.digo-ws-page .digo-ws-hero-card-price del,
body.digo-ws-page .digo-ws-hero-card-price del * {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}
body.digo-ws-page .digo-ws-hero-card-price ins,
body.digo-ws-page .digo-ws-hero-card-price ins * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* The shared site footer is another dark surface and must resist theme heading rules. */
body .digonest-footer-dark .digonest-footer-brand-name,
body .digonest-footer-dark .digonest-footer-col h3,
body .digonest-footer-dark .digonest-trust-copy strong,
body .digonest-footer-dark .digonest-payment-block h3,
body .digonest-footer-dark .digonest-msme-text span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
body .digonest-footer-dark .digonest-footer-tagline,
body .digonest-footer-dark .digonest-footer-desc,
body .digonest-footer-dark .digonest-footer-col li,
body .digonest-footer-dark .digonest-trust-copy span,
body .digonest-footer-dark .digonest-trust-copy p,
body .digonest-footer-dark .digonest-copy,
body .digonest-footer-dark .digonest-made-in {
    color: rgba(255, 255, 255, .78) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, .78) !important;
}
body .digonest-footer-dark .digonest-trust-copy .highlight {
    color: #a78bfa !important;
    -webkit-text-fill-color: #a78bfa !important;
}

/* Small dark utility surfaces. */
body .digo-404-screen,
body .digo-search-card-placeholder,
body .digo-article-content pre,
body .digo-article-content pre code {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}
