/* V4 theme contract: every interactive and informational surface inherits semantic tokens. */
html[data-i18n-ready="0"] body{visibility:hidden}html[data-i18n-ready="1"] body,html:not([data-i18n-ready]) body{visibility:visible}
body,main,section,article,aside,header,footer,nav,div,span,p,h1,h2,h3,h4,h5,h6,label,li,dt,dd,summary{border-color:var(--line)}
input,select,textarea,button{color:var(--text);border-color:var(--line);background-color:var(--surface)}
select option{color:var(--text);background:var(--surface)}input::placeholder,textarea::placeholder{color:var(--text-faint)!important;opacity:1}
.platform-card,.filter-panel,.detail-dialog,.eligibility-form,.result-card,.request-form,.request-side,.request-privacy,.metric-card,.preview-stat,.preview-panel,.service-card,.standard-card,.faq-item,.contact-card{background-color:var(--surface);color:var(--text)}
.platform-card p,.platform-card small,.filter-panel label,.detail-dialog p,.detail-dialog li,.eligibility-form label,.result-card p,.preview-panel p,.service-card p,.service-card li,.standard-card p,.faq-answer,.contact-card p{color:var(--text-soft)!important}
.section-label,.eyebrow,.status-badge,.category-badge{color:var(--accent)!important}.button-primary{color:#fff!important}.button-secondary{color:var(--text)!important;background:var(--surface-raised)!important}
html[data-theme="dark"] .button-light{background:#fff!important;color:#07182e!important}html[data-theme="dark"] .select-wrap option{background:#0d1c2f!important;color:#eff5fb!important}
html[data-theme="dark"] .platform-initials,html[data-theme="dark"] .preview-stat,html[data-theme="dark"] .request-side dl>div{background:var(--surface-soft)!important;color:var(--text)!important}
:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:2px}
.header-client{white-space:nowrap}.client-nav-link{color:var(--accent)!important}
@media(max-width:760px){.header-client{display:none}.container{width:min(calc(100% - 24px),var(--container))}.hero-grid,.request-hero-grid,.request-layout{grid-template-columns:1fr!important}.desktop-nav{display:none}.mobile-menu-button{display:grid}.service-grid,.platform-preview-grid{grid-template-columns:1fr!important}.filter-grid{grid-template-columns:1fr!important}.platform-grid{grid-template-columns:1fr!important}.eligibility-grid{grid-template-columns:1fr!important}.result-columns{grid-template-columns:1fr!important}}

/* Explicit contrast protection for mixed-theme sections and generated controls. */
html[data-theme="light"] .hero-panel,html[data-theme="light"] .standards-shell,html[data-theme="light"] .contact-shell,html[data-theme="light"] .directory-cta{color:#fff}
.hero-panel h1,.hero-panel h2,.hero-panel h3,.standards-shell h1,.standards-shell h2,.standards-shell h3,.contact-shell h1,.contact-shell h2,.contact-shell h3,.directory-cta h1,.directory-cta h2,.directory-cta h3{color:inherit}
.hero-panel p,.standards-shell p,.contact-shell p,.directory-cta p{color:rgba(255,255,255,.70)!important}
.hero-panel .section-label,.standards-shell .section-label,.contact-shell .section-label,.directory-cta .section-label{color:var(--accent-2)!important}
.standard-card,.contact-card{background:rgba(255,255,255,.06)!important;color:#fff!important;border-color:rgba(255,255,255,.14)!important}
.standard-card p,.contact-card p,.contact-card span{color:rgba(255,255,255,.68)!important}
.request-header,.request-form,.request-side,.request-privacy,.assessment-save-panel{color:var(--text)}
.request-header select,.request-header button,.request-client,.assessment-save-panel input{background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important}
.result-group,.result-platform,.modal-detail-grid section,.modal-sources,.directory-stat-card,.assessment-results,.form-step,.privacy-callout{color:var(--text)}
.filter-panel h1,.filter-panel h2,.filter-panel h3,.platform-card h1,.platform-card h2,.platform-card h3,.assessment-results h1,.assessment-results h2,.assessment-results h3{color:var(--text)}
html[data-theme="dark"] input[type="date"],html[data-theme="dark"] input[type="time"]{color-scheme:dark}
@media(max-width:560px){.header-actions{gap:6px}.select-wrap{max-width:142px}.select-wrap select{min-width:0;max-width:103px}.header-cta{display:none}.directory-hero h1,.eligibility-hero h1{font-size:clamp(2.05rem,11vw,3.35rem)!important;line-height:1.04}.service-card{min-height:auto!important}.footer-grid{grid-template-columns:1fr!important}.footer-bottom{flex-direction:column}.footer-bottom span:last-child{text-align:left}.contact-grid,.standards-grid,.capability-list{grid-template-columns:1fr!important}.capability-item{border-right:0!important}.capability-item:nth-last-child(-n+2){border-bottom:1px solid var(--line)!important}.capability-item:last-child{border-bottom:0!important}}
