/* Shared contrast corrections verified in light/dark course and legal screens. */
:root{--text-soft:#4f6470}
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:#476168!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:#637d72!important}
.portal-facts strong>span{color:#806022!important}
.course-hr .arrow-disc{color:#63447e!important}
body[data-course] #app :is(button.primary,a.primary){background:var(--course-button,#086d65)!important;color:#fff!important;border-color:var(--course-button,#086d65)!important}
.skip-link{background:var(--surface)!important;color:var(--ink)!important}
html[data-theme=dark]{--text-soft:#b6c6ce}
html[data-theme=dark] .hr-body,html[data-theme=dark] .hr-body p,html[data-theme=dark] .hr-body li{color:#d5e1e5!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:#294954!important;color:#d9eee6!important}
html[data-theme=dark] .portal-facts strong{color:#a4dfce!important}
html[data-theme=dark] .portal-facts strong>span{color:#e2bd75!important}
html[data-theme=dark] .note-bk{color:#9abeb0!important}
html[data-theme=dark] .list button small{color:#b2cccc!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:#b6c6ce;opacity:1}
/* Clear keyboard focus remains visible over every course palette. */
:focus-visible{outline:3px solid var(--focus-ring,#a37320);outline-offset:4px}
html:not([data-theme=dark]) body[data-course=miras] #detail>.pill{color:#76571d!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}
