/*!
 * AICT Dark Mode v1.1.1 (#A.23 Rule A+B token palette, WCAG AAA verified)
 * -----------------------------------------------------------------
 * External stylesheet enqueued via wp_enqueue_style() to survive
 * 10Web Booster Critical CSS stripping (which removes inline <style>).
 *
 * Palette:
 *   page bg  = #0f172a   card bg  = #1e293b
 *   heading  = #f1f5f9   body     = #cbd5e1   muted = #a3b8cc
 *   border   = #334155   link     = #60a5fa   hover = #93c5fd
 *
 * @since 1.98.4 (P4: externalized 2026-04-18)
 */

/* [v4.16.80au] Wave NNN — selectors gated on explicit data-theme="dark"
   instead of prefers-color-scheme media query. Was overriding card text
   to slate-100 on white whenever the visitor's OS was in dark mode,
   even though we honor only the explicit toggle (Wave AAA). */

[data-theme="dark"] .aict-blog-post .blog-content{color:#cbd5e1;}
    [data-theme="dark"] .aict-blog-post .blog-content h2, [data-theme="dark"] .aict-blog-post .blog-content h3, [data-theme="dark"] .aict-blog-post .blog-content h4{color:#f1f5f9;}
    [data-theme="dark"] .aict-blog-post .blog-content p, [data-theme="dark"] .aict-blog-post .blog-content li{color:#cbd5e1;}
    [data-theme="dark"] .aict-blog-post .blog-content a{color:#60a5fa;}
    [data-theme="dark"] .aict-blog-post .blog-content code{background:#0f172a;color:#e2e8f0;border:1px solid #334155;padding:.15em .35em;border-radius:4px;}
    [data-theme="dark"] .aict-blog-post .blog-content pre{background:#0f172a;color:#e2e8f0;border:1px solid #334155;}
    [data-theme="dark"] .aict-blog-post .blog-content blockquote{background:#1e293b;border-left-color:#60a5fa;color:#cbd5e1;}
    [data-theme="dark"] .aict-blog-post .blog-content hr, [data-theme="dark"] .aict-blog-post .blog-nav, [data-theme="dark"] .aict-blog-post .blog-share{border-color:#334155;}
    [data-theme="dark"] .aict-blog-post .blog-nav a{color:#60a5fa;}
    [data-theme="dark"] .aict-blog-post .blog-category{color:#93c5fd;}
    [data-theme="dark"] .aict-blog-post .blog-date, [data-theme="dark"] .aict-blog-post .blog-reading-time, [data-theme="dark"] .aict-blog-post .blog-updated{color:#a3b8cc;}
    [data-theme="dark"] .aict-blog-post .blog-author-box{background:#1e293b;border-color:#334155;}
    [data-theme="dark"] .aict-blog-post .blog-author-info h4{color:#f1f5f9;}
    [data-theme="dark"] .aict-blog-post .blog-author-info p{color:#a3b8cc;}
    [data-theme="dark"] .aict-blog-post .blog-share h4{color:#f1f5f9;}
    [data-theme="dark"] .aict-blog-post .blog-lang-bar{background:#1e293b;border-color:#334155;color:#cbd5e1;}
    [data-theme="dark"] .aict-tool-faq, [data-theme="dark"] .aict-tool-section.aict-faq{color:#cbd5e1;}
    [data-theme="dark"] .aict-faq-list .aict-faq-item, [data-theme="dark"] .aict-tool-section.aict-faq .aict-faq-item{background:#1e293b;border-color:#334155;color:#cbd5e1;}
    [data-theme="dark"] .aict-faq-item summary{color:#f1f5f9;}
    [data-theme="dark"] .aict-persona-faq, [data-theme="dark"] .aict-persona-faq-list{color:#cbd5e1;}
    [data-theme="dark"] .aict-persona-faq .aict-persona-faq-item, [data-theme="dark"] .aict-persona-faq-list .aict-persona-faq-item{background:#1e293b;border-color:#334155;color:#cbd5e1;}
    [data-theme="dark"] .aict-persona-faq-item summary, [data-theme="dark"] .aict-persona-faq-item h3{color:#f1f5f9;}
    [data-theme="dark"] .aict-persona-faq-item .faq-answer{color:#cbd5e1;}
    [data-theme="dark"] .aict-pillar-faq .aict-pillar-faq-item, [data-theme="dark"] .aict-guide-faq .aict-guide-faq-item, [data-theme="dark"] .aict-industry-faq .aict-industry-faq-item, [data-theme="dark"] .aict-cmp-faq .aict-cmp-faq-item{background:#1e293b;border-color:#334155;color:#cbd5e1;}
    [data-theme="dark"] .aict-pillar-faq-item summary, [data-theme="dark"] .aict-guide-faq-item summary, [data-theme="dark"] .aict-industry-faq-item summary, [data-theme="dark"] .aict-cmp-faq-item summary, [data-theme="dark"] .aict-pillar-faq-item h3, [data-theme="dark"] .aict-guide-faq-item h3, [data-theme="dark"] .aict-industry-faq-item h3, [data-theme="dark"] .aict-cmp-faq-item h3{color:#f1f5f9;}
    [data-theme="dark"] .faq-section{color:#cbd5e1;}
    [data-theme="dark"] .faq-section .faq-item{background:#1e293b;border-color:#334155;color:#cbd5e1;}
    [data-theme="dark"] .faq-section .faq-item h3, [data-theme="dark"] .faq-section .faq-item summary{color:#f1f5f9;}
    [data-theme="dark"] .aict-ab-sec{color:#cbd5e1;}
    [data-theme="dark"] .aict-ab-sec.aict-ab-gray{background:#0f172a;}
    [data-theme="dark"] .aict-ab-sec h2, [data-theme="dark"] .aict-ab-sec h3{color:#f1f5f9;}
    [data-theme="dark"] .aict-ab-sec-sub, [data-theme="dark"] .aict-ab-cta-p, [data-theme="dark"] .aict-cta-bot-note{color:#a3b8cc;}
    [data-theme="dark"] .aict-ab-step{background:#1e293b;border:1px solid #334155;color:#cbd5e1;}
    [data-theme="dark"] .aict-ab-step h3, [data-theme="dark"] .aict-ab-step-num{color:#f1f5f9;}
    [data-theme="dark"] .aict-val-card{background:#1e293b;border-color:#334155;color:#cbd5e1;}
    [data-theme="dark"] .aict-val-card h3{color:#f1f5f9;}
    [data-theme="dark"] .aict-trust-item{color:#cbd5e1;}
    [data-theme="dark"] .aict-about-cta-bot{background:#0f172a;color:#cbd5e1;}
    [data-theme="dark"] .aict-about-cta-bot h2{color:#f1f5f9;}
    [data-theme="dark"] .tool-card{background:#1e293b;border-color:#334155;color:#cbd5e1;}
    [data-theme="dark"] .aict-tool-card-title{color:#f1f5f9;}
    [data-theme="dark"] .aict-guide-tool-card, [data-theme="dark"] .aict-pillar-tool-card, [data-theme="dark"] .aict-industry-tool-card{background:#1e293b;border-color:#334155;color:#cbd5e1;}
    [data-theme="dark"] .aict-guide-tool-card h3, [data-theme="dark"] .aict-pillar-tool-card h3, [data-theme="dark"] .aict-industry-tool-card h3{color:#f1f5f9;}
    [data-theme="dark"] .aict-guide-step, [data-theme="dark"] .aict-pillar-section, [data-theme="dark"] .aict-industry-section{color:#cbd5e1;}
    [data-theme="dark"] .aict-guide-step h3, [data-theme="dark"] .aict-pillar-section h2, [data-theme="dark"] .aict-industry-section h2{color:#f1f5f9;}
    [data-theme="dark"] .aict-guide-step-num{color:#f1f5f9;}
    [data-theme="dark"] .aict-post-output-capture{color:#cbd5e1;}
    [data-theme="dark"] .aict-post-output-capture p{color:#cbd5e1;}
    [data-theme="dark"] .aict-post-output-capture h2, [data-theme="dark"] .aict-post-output-capture h3, [data-theme="dark"] .aict-post-output-capture h4{color:#f1f5f9;}
    [data-theme="dark"] .aict-post-output-capture a{color:#60a5fa;}
    [data-theme="dark"] .aict-howitworks, [data-theme="dark"] .aict-steps{color:#cbd5e1 !important;}
    [data-theme="dark"] .aict-howitworks h2, [data-theme="dark"] .aict-howitworks h3{color:#f1f5f9 !important;}
    [data-theme="dark"] .aict-step{background:#1e293b !important;border-color:#334155 !important;color:#cbd5e1 !important;}
    [data-theme="dark"] .aict-step-num{background:#1e293b !important;color:#f1f5f9 !important;border-color:#334155 !important;}
    [data-theme="dark"] .aict-step-text, [data-theme="dark"] .aict-step-desc{color:#cbd5e1 !important;}
    [data-theme="dark"] .aict-step-title, [data-theme="dark"] .aict-step h3{color:#f1f5f9 !important;}
    [data-theme="dark"] .aict-testimonial, [data-theme="dark"] .aict-testimonial-quote, [data-theme="dark"] .aict-testimonial-text{background:#1e293b !important;border-color:#334155 !important;color:#cbd5e1 !important;}
    [data-theme="dark"] .aict-testimonial-author, [data-theme="dark"] .aict-testimonial cite{color:#a3b8cc !important;}
    [data-theme="dark"] blockquote.aict-quote{background:#1e293b !important;border-left-color:#60a5fa !important;color:#cbd5e1 !important;}
    [data-theme="dark"] .aict-footer, [data-theme="dark"] .aict-site-footer{background:#0f172a !important;color:#cbd5e1 !important;border-top-color:#334155 !important;}
    [data-theme="dark"] .aict-site-footer .aict-footer-inner, [data-theme="dark"] .aict-site-footer .aict-footer-grid, [data-theme="dark"] .aict-site-footer .aict-footer-brand, [data-theme="dark"] .aict-site-footer .aict-footer-col, [data-theme="dark"] .aict-site-footer .aict-footer-bottom{color:#cbd5e1 !important;}
    [data-theme="dark"] .aict-site-footer h4, [data-theme="dark"] .aict-footer h4, [data-theme="dark"] .aict-footer-col h4{color:#f1f5f9 !important;}
    [data-theme="dark"] .aict-site-footer a, [data-theme="dark"] .aict-footer a, [data-theme="dark"] .aict-footer-links a, [data-theme="dark"] .aict-footer-col a, [data-theme="dark"] .aict-footer-logo{color:#93c5fd !important;}
    [data-theme="dark"] .aict-site-footer a:hover, [data-theme="dark"] .aict-footer a:hover, [data-theme="dark"] .aict-footer-links a:hover, [data-theme="dark"] .aict-footer-col a:hover{color:#bfdbfe !important;}
    [data-theme="dark"] .aict-site-footer p, [data-theme="dark"] .aict-footer p, [data-theme="dark"] .aict-footer-bottom p{color:#a3b8cc !important;}
    [data-theme="dark"] .aict-site-footer, [data-theme="dark"] .aict-footer{border-color:#334155 !important;}
    [data-theme="dark"] .trust-section{background:#0f172a !important;border-top-color:#334155 !important;}
    [data-theme="dark"] .trust-section h2{color:#f1f5f9 !important;}
    [data-theme="dark"] .trust-section div{color:#cbd5e1 !important;}
    [data-theme="dark"] .trust-section > div > div > div > div:first-child{color:#93c5fd !important;}
    [data-theme="dark"] .cta-section{background:#0f172a !important;color:#cbd5e1 !important;}
    [data-theme="dark"] .cta-section h2{color:#f1f5f9 !important;}
    [data-theme="dark"] .cta-section p{color:#cbd5e1 !important;}

    /* ── What's New page ─────────────────────────────────────────────── */
    [data-theme="dark"] .aict-wn{color:#cbd5e1;}
    [data-theme="dark"] .aict-wn h1{color:#f1f5f9 !important;}
    [data-theme="dark"] .aict-wn-card{background:#1e293b !important;border-color:#334155 !important;color:#cbd5e1 !important;}
    [data-theme="dark"] .aict-wn-card h2{color:#f1f5f9 !important;}
    [data-theme="dark"] .aict-wn-card strong{color:#60a5fa !important;}
    [data-theme="dark"] .aict-wn-card li{color:#cbd5e1 !important;}

    /* ── Workflows index page ────────────────────────────────────────── */
    [data-theme="dark"] .aict-wf-bundle-grid a, [data-theme="dark"] .aict-wf-index-grid a{background:#1e293b !important;border-color:#334155 !important;}
    [data-theme="dark"] .aict-wf-bundle-grid a:hover, [data-theme="dark"] .aict-wf-index-grid a:hover{border-color:#5c5fe6 !important;}
    [data-theme="dark"] #aict-wf-search{background:#1e293b !important;border-color:#334155 !important;color:#f1f5f9 !important;}
    [data-theme="dark"] #aict-wf-search::placeholder{color:#64748b !important;}

    /* ── Pricing page extras ─────────────────────────────────────────── */
    [data-theme="dark"] .aict-pricing-toggle{color:#a3b8cc !important;}
    [data-theme="dark"] .aict-pricing-card li{color:#cbd5e1 !important;}
    [data-theme="dark"] .aict-pricing-faq .aict-faq-item{background:#1e293b !important;border-color:#334155 !important;}

    /* ── Tool template prompts section ───────────────────────────────── */
    [data-theme="dark"] .aict-prompts-section{background:#1e293b !important;border-color:#334155 !important;color:#cbd5e1 !important;}
    [data-theme="dark"] .aict-prompts-section h3{color:#f1f5f9 !important;}

    /* ── Blog TOC (sticky sidebar) ───────────────────────────────────── */
    [data-theme="dark"] .blog-toc{background:#1e293b !important;border-color:#334155 !important;}
    [data-theme="dark"] .blog-toc a{color:#93c5fd !important;}
    [data-theme="dark"] .blog-toc a:hover, [data-theme="dark"] .blog-toc a.active{color:#60a5fa !important;}

    /* ── Category / alternatives / free pages ────────────────────────── */
    [data-theme="dark"] .aict-cat-hero, [data-theme="dark"] .aict-alt-hero{color:#cbd5e1;}
    [data-theme="dark"] .aict-cat-hero h1, [data-theme="dark"] .aict-alt-hero h1{color:#f1f5f9 !important;}
    [data-theme="dark"] .aict-cat-hero p, [data-theme="dark"] .aict-alt-hero p{color:#a3b8cc !important;}

    /* [2026-06-15 a11y] Secondary-page dark-mode rescue (.aict-secpage: submit-tool,
       advertise, media-kit, affiliate landing/signup/dashboard). These inline-styled pages
       hardcode light card bgs + dark text that never adapted, producing light-on-white
       (1.09-1.48:1) or dark-on-dark text in dark mode. Flip the common inline colors.
       Scoped to .aict-secpage so the audited primary templates are untouched. */
    [data-theme="dark"] .aict-secpage [style*="background:#fff"],
    [data-theme="dark"] .aict-secpage [style*="background:#ffffff"],
    [data-theme="dark"] .aict-secpage [style*="background:#f8fafc"],
    [data-theme="dark"] .aict-secpage [style*="background:#f1f5f9"],
    [data-theme="dark"] .aict-secpage [style*="background:#f5f3ff"],
    [data-theme="dark"] .aict-secpage [style*="background:#faf5ff"],
    [data-theme="dark"] .aict-secpage [style*="background:#ede9fe"],
    [data-theme="dark"] .aict-secpage [style*="background:#f0fdf4"],
    [data-theme="dark"] .aict-secpage [style*="background:#fef2f2"],
    [data-theme="dark"] .aict-secpage [style*="background:#fffbeb"]{background:#1e293b !important;border-color:#334155 !important;}
    [data-theme="dark"] .aict-secpage [style*="color:#0f172a"],
    [data-theme="dark"] .aict-secpage [style*="color:#1e293b"],
    [data-theme="dark"] .aict-secpage [style*="color:#334155"]{color:#f1f5f9 !important;}
    [data-theme="dark"] .aict-secpage [style*="color:#475569"],
    [data-theme="dark"] .aict-secpage [style*="color:#64748b"],
    [data-theme="dark"] .aict-secpage [style*="color:#4b5563"],
    [data-theme="dark"] .aict-secpage [style*="color:#94a3b8"]{color:#cbd5e1 !important;}
    [data-theme="dark"] .aict-secpage [style*="color:#4338ca"],
    [data-theme="dark"] .aict-secpage [style*="color:#4f46e5"],
    [data-theme="dark"] .aict-secpage [style*="color:#5c5fe6"],
    [data-theme="dark"] .aict-secpage [style*="color:#7c3aed"],
    [data-theme="dark"] .aict-secpage [style*="color:#5b21b6"]{color:#a5b4fc !important;}
    [data-theme="dark"] .aict-secpage [style*="color:#15803d"],
    [data-theme="dark"] .aict-secpage [style*="color:#0e7490"],
    [data-theme="dark"] .aict-secpage [style*="color:#047857"]{color:#6ee7b7 !important;}
    [data-theme="dark"] .aict-secpage [style*="color:#b45309"],
    [data-theme="dark"] .aict-secpage [style*="color:#c2410c"]{color:#fbbf24 !important;}
    [data-theme="dark"] .aict-secpage input,
    [data-theme="dark"] .aict-secpage textarea,
    [data-theme="dark"] .aict-secpage select{background:#0f172a !important;color:#e2e8f0 !important;border-color:#334155 !important;}
