/* Load after component/theme styles. High contrast owns the control palette. */
html[data-contrast=high] :is(.a11y-panel,.mentoring-dialog,.mentoring-head){
 background:var(--bg)!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important
}
html[data-contrast=high] :is(.a11y-head h2,.mentoring-head h2,.a11y-group-title){color:var(--text)!important}
html[data-contrast=high] :is(.a11y-action,.a11y-close,.mentoring-close,.header-control,.mentoring-form input,.mentoring-form select,.mentoring-form textarea){
 background:var(--bg)!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important
}
html[data-contrast=high] .a11y-action[aria-pressed=true]{background:var(--text)!important;color:var(--bg)!important;border-color:var(--gold)!important}
html[data-contrast=high] :is(.support-link,.mentoring-cta){background:var(--bg)!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important}
html[data-contrast=high] #brandFooter{background:var(--bg)!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important}
html[data-contrast=high] #brandFooter :is(.brand-name,.brand-topics,.brand-quote,.socials a){color:var(--text)!important;border-color:var(--line)!important}
html[data-contrast=high] :is(input,textarea)::placeholder{color:var(--text)!important;opacity:1}
/* Match the legacy footer-exclusion specificity used by migrated shells. */
html[data-contrast=high] .brand-logo:not(#brandFooter):not(#brandFooter *),
html[data-contrast=high] #brandFooter .brand-logo{filter:grayscale(1) brightness(0) invert(1)!important}
