/* Contrast fixes for UI surfaces. Educational art, simulations and original media keep their palette. */
:root{--sa-readable-link:#075b88;--sa-readable-error:#a41a35;--sa-readable-note:#475569}
html[data-theme=dark]{--sa-readable-link:#9cddff;--sa-readable-error:#ffb6c3;--sa-readable-note:#d3ddeb}
html[data-theme] body .sa-readable-link{color:var(--sa-readable-link)!important;text-underline-offset:3px}
html[data-theme] body .sa-form-error{color:var(--sa-readable-error)!important}
html[data-theme=dark] body .sa-form-error[class*=bg-red-50]{background:#471e2b!important;color:#ffcfda!important;border:1px solid #b95672}
html[data-theme] body .sa-photo-control{background:#a5eff5!important;color:#0b2545!important}
html[data-theme] body .sa-profile-identity{background:#102c4d!important;color:#fff!important}
html[data-theme] body .sa-profile-identity :is(p,small,label,strong,span):not(.sr-only){color:#e6f2ff!important}
html[data-theme] body .sa-profile-identity .sa-photo-control,html[data-theme] body .sa-profile-identity .sa-photo-control :is(span,svg){color:#0b2545!important}
html[data-theme=dark] body .fic-exterior .course-registration-card{background:#142b43!important;color:#f3f7ff!important;border-color:#5b7898!important}
html[data-theme=dark] body .fic-exterior .course-registration-card :is(p,label,dt){color:#d3ddeb!important}
html[data-theme=dark] body .fic-exterior .course-registration-card :is(h2,dd){color:#f5f8ff!important}
html[data-theme=dark] body .fic-exterior .course-registration-card :is(.text-cyan-800,.text-emerald-700){color:#a4e7fc!important}
html[data-theme=dark] body .fic-exterior .course-registration-card .bg-cyan-100{background:#174967!important}
html[data-theme=dark] body .fic-exterior .course-registration-card a:not(.course-button){color:#a4e7fc!important;text-underline-offset:3px}
html[data-theme=dark] body .fic-exterior .course-registration-card .sa-form-error{color:#ffb6c3!important}
.course-registration-card{scroll-margin-top:26px;min-width:0}
.course-registration-card form,.course-registration-card form>*{min-width:0}
.course-registration-card input[type=checkbox]{accent-color:#5e28ba}
@media(max-width:700px){html[data-theme] body .course-registration-card{padding:22px 18px!important;border-radius:22px!important}html[data-theme] body .course-registration-card form{grid-template-columns:minmax(0,1fr)!important;gap:17px}html[data-theme] body .course-registration-card form>*{grid-column:auto!important}html[data-theme] body :is(.course-input,.eco-page input:not([type=checkbox]):not([type=radio]),.eco-page textarea,.eco-page select){font-size:16px;min-height:48px;line-height:1.45}html[data-theme] body .course-registration-card :is(label,p){font-size:15px;line-height:1.55}html[data-theme] body .course-registration-card h2{font-size:26px;line-height:1.18}html[data-theme] body .course-registration-card .course-button{min-height:50px;font-size:16px;white-space:normal}html[data-theme] body .fic-approved-top-nav{gap:8px}html[data-theme] body .fic-approved-top-nav :is(a,button){font-size:13px;min-height:48px;padding:10px 7px}html[data-theme] body .fic-approved-top-nav svg{width:25px;height:25px;flex:none}}

@media(max-width:700px){html[data-theme] body .fic-exterior .course-registration-card .course-input{font-size:16px!important;min-height:50px!important;line-height:1.5!important}html[data-theme] body .fic-exterior .course-registration-card .course-button{min-height:50px!important;font-size:16px!important}}
