/* Deep readability & contrast pass — 2026-08-31
   Keeps the navy/gold identity while using darker gold on light surfaces,
   stronger slate for secondary copy, and brighter copy on dark surfaces. */

/* ---------- Shared rendering ---------- */
body{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ---------- Main homepage ---------- */
body.site-homepage{
  --read-text:#243546;
  --read-muted:#4b5d6d;
  --read-muted-soft:#586876;
  --read-gold:#765116;
  --read-gold-strong:#6f4b10;
  --read-light:#dce7ef;
  --read-light-soft:#cbd8e3;
  --read-gold-light:#f2d89c;
}
body.site-homepage :where(.section-head p,.pillar p,.about-copy p,.card p,.safety-note,.form-foot p,.briefing-meta span){color:var(--read-muted)!important}
body.site-homepage :where(.brand-text span,.notice,.small-copy){color:var(--read-muted-soft)!important}
body.site-homepage :where(.kicker,.institutional-badge){color:var(--read-gold)!important}
body.site-homepage :where(.pillar .icon,.check,.meta){color:var(--read-gold-strong)!important}
body.site-homepage .hero :where(.kicker,.eyebrow){color:var(--read-gold-light)!important}
body.site-homepage .hero :where(.hero-sub,.hero-copy>p,.hero-actions-note){color:var(--read-light)!important}
body.site-homepage :where(.official-card p,.official-card .institutional-line){color:#e4edf3!important}
body.site-homepage .official-card .fine{color:#cbd8e3!important}
body.site-homepage :where(.protocol-step,.credibility-item span){color:#d4e0e9!important}
body.site-homepage footer :where(li,p,.footer-bottom,.footer-brand p){color:#cbd8e3!important}
body.site-homepage .hero-action-cluster.movement-only .movement-hero-expanded em{color:#e0e9f0!important}
body.site-homepage .hero-action-cluster.movement-only .movement-hero-expanded small{color:#f2d89c!important}

/* ---------- Learning Center ---------- */
body.site-learning{
  --muted:#4b5d6d;
  --read-muted:#4b5d6d;
  --read-muted-soft:#586876;
  --read-gold:#765116;
  --read-light:#dce7ef;
  --read-gold-light:#f2d89c;
}
body.site-learning :where(.dashboard-intro,.dashboard-chooser>p,.dashboard-progress-title,.dashboard-progress-tools,.dashboard-module p,.milestone-card p,.knowledge-cta p,.learning-guides-head p,.guide-card small,.practice-card p,.enrichment-block>.sub,.fact-card p,.mini-info-card p,.pathway-stage-copy>p,.pathway-focus-note,.dashboard-shortcut-card p,.dashboard-heritage-copy span){color:var(--read-muted)!important}
body.site-learning :where(.quick-card .num,.concept .tag,.dashboard-copy .dashboard-eyebrow,.dashboard-shortcut-kicker,.dashboard-heritage-copy small,.learning-brand-stamp-copy>span,.now-card b){color:var(--read-gold)!important}
body.site-learning .learning-brand-stamp-copy>small{color:var(--read-muted-soft)!important}
body.site-learning :where(.concept .detail,.feedback,.module-guide p){color:#46596a!important}
body.site-learning .heritage-card p{color:#e1e9ef!important}
body.site-learning .heritage-card .credit{color:#cbd8e3!important}
body.site-learning .movement-deepdive-copy p{color:#e1ebf2!important}
body.site-learning .movement-deepdive-tags span{color:#f4dfb3!important}
body.site-learning :where(.footer-disclaimer,.footer-brand-lockup small){color:#cbd8e3!important}

/* ---------- Abraham Accords + Abrahamic Movement guides ---------- */
body.site-abraham-guide{
  --muted:#4b5d6d;
  --read-muted:#4b5d6d;
  --read-muted-soft:#586876;
  --read-gold:#765116;
  --read-light:#dce7ef;
  --read-gold-light:#f2d89c;
}
body.site-abraham-guide .section:not(.dark) :where(.kicker,.section-kicker){color:var(--read-gold)!important}
body.site-abraham-guide :where(.section:not(.dark) .section-head p,.event p,.mini-card p,.term p,.country-tab small,.statement-tab small,.country-panel p,.list-card li,.view p,.flash .answer,.vision-head p,.vision-card p,.statement-panel p,.statement-bullets,.event-spotlight p,.activity-panel p,.activity-panel ul,.debate-card p){color:var(--read-muted)!important}
body.site-abraham-guide :where(.hero-art figcaption,.statement-art figcaption,.identity-note,.source-context){color:var(--read-muted-soft)!important}
body.site-abraham-guide .country-panel .date{color:var(--read-gold)!important}
body.site-abraham-guide :where(.person-role,.partner-role b,.vision-card-label,.now-card b){color:var(--read-gold)!important}
body.site-abraham-guide .section.dark :where(.kicker,.section-kicker){color:var(--read-gold-light)!important}
body.site-abraham-guide .section.dark :where(.section-head p,.iraq-copy p){color:#dce7ef!important}
body.site-abraham-guide :where(.status span,.next p,.legal-card p){color:#dce7ef!important}
body.site-abraham-guide .partner-lockup p{color:#edf4f9!important}
body.site-abraham-guide .partner-lockup .partner-label{color:#f2d89c!important}
body.site-abraham-guide .partner-boundary{color:#edf4f9!important}
body.site-abraham-guide :where(.voice-motto span,.guide-brand-stamp span,.footer-brand-lockup span){color:#f0d69a!important}
body.site-abraham-guide :where(.footer-disclaimer,.footer .container){color:#cbd8e3!important}

/* ---------- Mission, Analysis, Contact, Statements ---------- */
body.site-seo-page{
  --muted:#4b5d6d;
}
body.site-seo-page :where(.article-meta,.card p,.source-note,.article-logo figcaption,.article-language-note,.page-langs .lang-label){color:#4b5d6d!important}
body.site-seo-page .breadcrumb{color:#586876!important}
body.site-seo-page .breadcrumb a{color:#46596a!important}
body.site-seo-page .notice{color:#536372!important}
body.site-seo-page .page-langs a{color:#46596a!important}
body.site-seo-page .hero .kicker{color:#f2d89c!important}
body.site-seo-page .hero p{color:#e1e9ef!important}
body.site-seo-page .foot{color:#cbd8e3!important}

/* ---------- Iraqi Jewish Heritage system ---------- */
body.site-heritage{
  --read-text:#243546;
  --read-muted:#53616d;
  --read-muted-soft:#5c6974;
  --read-gold:#765116;
  --read-gold-soft:#806023;
  --read-light:#dce7ef;
  --read-light-soft:#cbd8e3;
  --read-gold-light:#f2d89c;
}
/* Light paper/white surfaces */
body.site-heritage :where(.section:not(.dark) .section-head p,.copy-block p,.feature-card p,.plan-card p,.dest-card p,.root-card p,.timeline-item p,.site-long-brief,.research-head p,.research-story p,.research-sources p,.connection-card p,.connection-empty p,.archive-card-body p,.collection-card p,.people-card p,.learn-card p,.learn-narrative p,.assistant-intro p,.assistant-summary p,.search-result p,.baghdad-groups p,.entity-story p,.entity-note p,.site-alias-box p,.editorial-status>p,.method-grid p,.revision-row p,.archive-story-card p,.figure-portrait-card figcaption){color:var(--read-muted)!important}
body.site-heritage :where(nav a,.small-copy,.roots-results,.pick-row label small,.it-stop small,.notice,.consent,.audio-strip span,.nearby-card small,.root-note small,.site-hero-meta>span,.research-language-note,.research-facts li,.atlas-filter,.map-tools button,.audio-btn,.passport-btn,.search-filters label,.search-meta,.opacity-control,.figure-directory-summary span,.figure-id){color:var(--read-muted-soft)!important}
/* Small gold labels on light surfaces need a darker gold than decorative gold. */
body.site-heritage :where(.section:not(.dark) .kicker,.section:not(.dark) .section-head .kicker,.feature-card>span,.plan-card>span,.dest-type,.research-period small,.research-story small,.source-stack i,.site-timeline-date,.connection-card small,.archive-card-body>small,.archive-rights b,.collection-card small,.people-type,.people-city small,.people-sites small,.site-archive-card small,.era-chip small,.history-source small,.learn-card small,.search-result small,.baghdad-groups small,.compare-label,.entity-meta span,.site-alias-box small,.editorial-status-grid small,.archive-story-card small,.people-origin){color:var(--read-gold)!important}
body.site-heritage :where(.brand-copy small,.lang-switch button,.global-lang-switch button){color:#4f5c66!important}
/* Dark/image surfaces */
body.site-heritage .hero :where(.kicker,.hero h1 em){color:var(--read-gold-light)!important}
body.site-heritage .hero p{color:#e1e9ef!important}
body.site-heritage .hero-stats span{color:#d8e3eb!important}
body.site-heritage .section.dark :where(.section-head p,.copy-block p){color:#dce7ef!important}
body.site-heritage :where(.page-hero p,.site-evidence-band p,.immersive-page-head p){color:#dce7ef!important}
body.site-heritage :where(.page-hero .breadcrumbs,.page-hero .breadcrumbs a,.immersive-page-head .crumb,.immersive-page-head .crumb a){color:#cbd8e3!important}
body.site-heritage :where(.page-hero .kicker,.site-evidence-band small,.immersive-brand small){color:#f2d89c!important}
body.site-heritage footer :where(p,.footer-note,.footer-links a){color:#cbd8e3!important}
/* Brochure homepage light headings */
body.site-heritage.brochure-home :where(.brochure-heading span,.brochure-heading.row>a b,.journeys-intro>span,.passport-brochure>div>span){color:var(--read-gold)!important}
body.site-heritage.brochure-home .brochure-heading p{color:var(--read-muted)!important}
body.site-heritage.brochure-home .brochure-experience-grid span{color:var(--read-muted)!important}

/* ---------- Generic fallback pages ---------- */
body.site-generic{color:#243546}

/* ---------- Mobile readability reinforcement ---------- */
@media(max-width:760px){
  body.site-homepage :where(.section-head p,.pillar p,.about-copy p,.card p),
  body.site-learning :where(.dashboard-intro,.dashboard-module p,.milestone-card p,.practice-card p),
  body.site-abraham-guide :where(.section-head p,.event p,.statement-panel p,.activity-panel p),
  body.site-seo-page :where(.hero p,.article-body,.card p),
  body.site-heritage :where(.section-head p,.copy-block p,.dest-card p,.site-long-brief,.research-story p){
    opacity:1!important;
  }
}

/* Homepage dark-panel exceptions + live briefing readability */
body.site-homepage :where(.initiative .kicker,.contact-panel .kicker){color:#f2d89c!important}
body.site-homepage .contact-panel p{color:#e1e9ef!important}
body.site-homepage :where(.osint-briefing-head p,.osint-story p){color:#4b5d6d!important}
body.site-homepage :where(.osint-status-chip span,.osint-score span,.osint-story-source,.osint-briefing-foot,.osint-empty){color:#536372!important}
body.site-homepage .osint-story-meta span{color:#765116!important}
body.site-homepage :where(.osint-filter:hover,.osint-filter.is-active,.osint-story-link:hover){color:#765116!important}
