/* Shared contrast corrections verified in light/dark course and legal screens. */
:root{--text-soft:#885d66}
footer,footer small,footer>span{color:var(--text-soft)!important}
footer strong{color:var(--ink)!important}
.course-breadcrumb,.course-breadcrumb a,.miras-quiet,.topic-progress{color:var(--text-soft)!important}
.list button small{color:#754450!important}
.stats small,.portal-facts>div>span{color:var(--text-soft)!important}
.portal-note p{color:var(--text-soft)!important}
.portal-note strong{color:var(--ink)!important}
.note-bk{color:#9e7a80!important}
.portal-facts strong>span{color:#8e6350!important}
.course-hr .arrow-disc{color:#754450!important}
body[data-course] #app :is(button.primary,a.primary){background:var(--course-button,#885d66)!important;color:#f5f0e8!important;border-color:var(--course-button,#885d66)!important}
.skip-link{background:var(--surface)!important;color:var(--ink)!important}
html[data-theme=dark]{--text-soft:#d8c9c5}
html[data-theme=dark] .hr-body,html[data-theme=dark] .hr-body p,html[data-theme=dark] .hr-body li{color:#e4d8d3!important}
html[data-theme=dark] .miras-quiz-progress{background:var(--surface-soft)!important;color:var(--text-soft)!important}
html[data-theme=dark] .miras-quiz-progress span{color:var(--text-soft)!important}
html[data-theme=dark] .course-cta .arrow-disc{background:#642c3b!important;color:#f1eae3!important}
html[data-theme=dark] .portal-facts strong{color:#d8c9c5!important}
html[data-theme=dark] .portal-facts strong>span{color:#d0bc99!important}
html[data-theme=dark] .note-bk{color:#cab5b4!important}
html[data-theme=dark] .list button small{color:#d8c9c5!important}
html[data-theme=dark] .quiz-progress,html[data-theme=dark] .quiz-score{background:var(--surface-soft)!important;color:var(--text-soft)!important}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#d8c9c5;opacity:1}
/* Clear keyboard focus remains visible over every course palette. */
:focus-visible{outline:3px solid var(--focus-ring,#a27e5a);outline-offset:4px}
html:not([data-theme=dark]) body[data-course=miras] #detail>.pill{color:#794845!important}
html[data-theme=dark] .quiz-counts{background:var(--surface-soft)!important;color:var(--text-soft)!important}
html[data-theme=dark] .quiz-counts span{color:var(--text-soft)!important}
.legal-status{padding:20px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:12px;background:var(--surface-soft)}
html[data-theme=dark] .quiz-counts span{background:var(--surface-soft)!important}
