/* Project PRISM 2AR.3b — Color-contrast correction ONLY.
   This fixes white/faint text on light interior panes in Glass mode.
   No page backgrounds, dashboard, Classic theme, status chips, checklist
   item colors, supplier award colors, scripts, or backend behavior change. */

/* Legacy 2AR.2 applies white typography indiscriminately to every heading
   inside dark top-level cards. In 2AR.3 the INNER panes are light, so those
   white words become unreadable. Target only identified light-pane classes. */
html.prismThemeGlass #app section.stack:not(#homePage) > .card
 :is(.prismOpsBlock, .prismIntakeSection, .sourceSection, .sourceCard,
     .sourceBulkAssist, .prismSourceWorkflowGuide, .appBudgetPanel,
     .phase2LineEntry, .prismAbstractHubCard, .prismUnifiedExplanation,
     .prismAbstractAllocations, .prismAbstractSchedules,
     .prismAccountPanel, .prismStageReviewPanel, .prismPageGateCard,
     .prismRfCard, .prismSectionCard, .prismIntakeCard, .prismFeedbackCard)
 > :is(h2,h3,h4,h5,h6){
  color:#15374e !important;
  text-shadow:none !important;
}

/* Descriptions, explanatory labels and primary status summaries which
   sit directly against the light pane background: dark ink, not pale blue. */
html.prismThemeGlass #app section.stack:not(#homePage) > .card
 :is(.prismOpsBlock, .prismIntakeSection, .sourceSection, .sourceCard,
     .sourceBulkAssist, .prismSourceWorkflowGuide, .appBudgetPanel,
     .phase2LineEntry, .prismAbstractHubCard, .prismUnifiedExplanation,
     .prismAbstractAllocations, .prismAbstractSchedules,
     .prismAccountPanel, .prismStageReviewPanel, .prismPageGateCard,
     .prismRfCard, .prismSectionCard, .prismIntakeCard, .prismFeedbackCard)
 > :is(.sub, .phase2Muted, .sourceMini, .sourceNotice, .phase2DraftField,
       .sourceField, .prismUnifiedExplanation){
  color:#315169 !important;
  text-shadow:none !important;
}

/* Specific observed failing sections: the end-user document note and
   Official Workflow stage summary are light-on-light in current 2AR.3a. */
html.prismThemeGlass #app #inboxPage #opsIntakeSection > .sub,
html.prismThemeGlass #app #inboxPage #opsWorkflowBlock > #opsStageSummary{
  color:#315169 !important;
  text-shadow:none !important;
  opacity:1 !important;
}
html.prismThemeGlass #app #inboxPage :is(#opsIntakeSection,#opsWorkflowBlock) > h3,
html.prismThemeGlass #app #inboxPage .prismOpsBlock > h3{
  color:#15374e !important;
  text-shadow:none !important;
}

/* Safe fallback for headings inside light inset panels nested more deeply
   within the non-dashboard workspace. Excludes dark banners and colored
   status / checklist rows because it only matches named light containers. */
html.prismThemeGlass #app section.stack:not(#homePage)
 :is(.prismOpsBlock,.prismIntakeSection,.sourceSection,.sourceCard,
     .prismAbstractHubCard,.appBudgetPanel,.prismAccountPanel)
 :is(.sub,.phase2Muted,.sourceMini){
  color:#315169 !important;
  text-shadow:none !important;
}

@media (forced-colors:active){
 html.prismThemeGlass #app section.stack:not(#homePage) > .card
  :is(.prismOpsBlock,.sourceSection,.prismIntakeSection) > :is(h2,h3,h4,.sub){
   color:CanvasText !important;
 }
}
