/* Caspenda dark-mode contrast hardening.
   Loaded after the institutional layers so legacy light-theme literals and
   inline text colors cannot make About, governance, guide or calculator copy
   too dark on dark surfaces. */

[data-theme="dark"] .prose,
[data-theme="dark"] .prose p,
[data-theme="dark"] .prose li,
[data-theme="dark"] .post-content,
[data-theme="dark"] .post-content p,
[data-theme="dark"] .post-content li,
[data-theme="dark"] .guide-content,
[data-theme="dark"] .guide-content p,
[data-theme="dark"] .guide-content li,
[data-theme="dark"] .method-card p,
[data-theme="dark"] .method-card li,
[data-theme="dark"] .info-card p,
[data-theme="dark"] .info-card li,
[data-theme="dark"] .quick-answer,
[data-theme="dark"] .brand-promise p,
[data-theme="dark"] .result-insight,
[data-theme="dark"] .split-row span,
[data-theme="dark"] .infl-note,
[data-theme="dark"] .chart-legend,
[data-theme="dark"] .collapse summary,
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .breadcrumb li,
[data-theme="dark"] .breadcrumb a,
[data-theme="dark"] .crumb,
[data-theme="dark"] .crumb a {
  color: var(--ink-soft) !important;
}

[data-theme="dark"] .prose strong,
[data-theme="dark"] .post-content strong,
[data-theme="dark"] .guide-content strong,
[data-theme="dark"] .method-card strong,
[data-theme="dark"] .info-card strong,
[data-theme="dark"] .quick-answer strong,
[data-theme="dark"] .brand-promise strong,
[data-theme="dark"] .author-signature,
[data-theme="dark"] .result-head .label,
[data-theme="dark"] .split-row b,
[data-theme="dark"] .withdraw-box .label,
[data-theme="dark"] .withdraw-amt {
  color: var(--ink) !important;
}

[data-theme="dark"] .prose a,
[data-theme="dark"] .post-content a,
[data-theme="dark"] .guide-content a,
[data-theme="dark"] .method-card a,
[data-theme="dark"] .info-card a,
[data-theme="dark"] .formula-link {
  color: #74cdb9 !important;
}
[data-theme="dark"] .prose a:hover,
[data-theme="dark"] .post-content a:hover,
[data-theme="dark"] .guide-content a:hover,
[data-theme="dark"] .method-card a:hover,
[data-theme="dark"] .info-card a:hover,
[data-theme="dark"] .formula-link:hover {
  color: #9be0d0 !important;
}

[data-theme="dark"] .prose h1,
[data-theme="dark"] .prose h2,
[data-theme="dark"] .prose h3,
[data-theme="dark"] .post-content h1,
[data-theme="dark"] .post-content h2,
[data-theme="dark"] .post-content h3,
[data-theme="dark"] .guide-content h1,
[data-theme="dark"] .guide-content h2,
[data-theme="dark"] .guide-content h3,
[data-theme="dark"] .method-card h3,
[data-theme="dark"] .info-card h3 {
  color: var(--ink) !important;
}

[data-theme="dark"] .method-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .brand-promise,
[data-theme="dark"] .quick-answer,
[data-theme="dark"] .withdraw-box {
  background: var(--bg-soft) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] body.institutional-trust .prose strong {
  color: var(--ink) !important;
}
[data-theme="dark"] body.institutional-trust .prose a,
[data-theme="dark"] body.institutional-trust .prose::before {
  color: #74cdb9 !important;
}

/* Branded navy footer is shared by both themes; raise secondary copy contrast. */
.site-footer .footer-grid > div:first-child p { color: rgba(255,255,255,.72) !important; }
.site-footer .footer-grid h4 { color: rgba(255,255,255,.62) !important; }
.site-footer .footer-grid a { color: rgba(255,255,255,.86) !important; }
.site-footer .footer-note p { color: rgba(255,255,255,.62) !important; }
.site-footer .footer-note .foot-src a { color: rgba(255,255,255,.72) !important; }
