/* Design v901 — explicit text contrast on every light/dark surface */
html{color-scheme:light}
body,main{color:#17213b}
main h1,main h2,main h3,main h4,
main strong,main label,main summary,
.card h3,.card strong,.section-head h2,.page-title h1,.admin-head h1{
  color:#17213b;
}
main p,.section-head>div>p:last-child,.card p,.timeline p,
.detail-layout p,.auth p,.inquiry p,.content-list p{
  color:#526078;
}
.eyebrow,.feature-grid em,.workflow-grid em,.auth::before,.admin-head::before{color:#554ed5}
header,header nav,header .link{color:#27324d}
header nav a:hover{color:#5149d0}

/* Previously dark showcase is now light: reset all inherited pale text. */
.showcase,.showcase h2,.showcase h3,.showcase strong{color:#17213b}
.showcase p,.showcase li span{color:#536078}
.showcase .eyebrow{color:#554ed5}
.showcase li>b{color:#fff}

/* Light banner copy. */
.banner,.banner h1,.banner h2,.banner h3{color:#17213b!important}
.banner .eyebrow{color:#554ed5!important}
.banner .hero-copy>p:not(.eyebrow){color:#526078!important}
.robot-speech span,.card-speech,.product-speech,.faq-visual::after{color:#202d4e!important}

/* Cards, forms, tables and administrator screens. */
.card,.panel,.auth,.editor>details,.inquiry,.chat-room,.chat-layout>aside,
.table-wrap,.content-list article,.detail-layout>article,.detail-layout>aside,
.member-stat,.live-stats article,.page-title,.admin-head{
  color:#17213b;background-color:#fff;
}
input,select,textarea{
  color:#17213b!important;background:#fff!important;border-color:#cdd4e2!important;
}
input::placeholder,textarea::placeholder{color:#737e91;opacity:1}
th{color:#465269;background:#f1f3f8}
td{color:#26324b;background:#fff}
td small,.chat-thread small,.member-row small{color:#67738a}
.tabs a{color:#404b62}.tabs .active{color:#4d46cb}
.badges span,.pill,.status,.program-chip{color:#3e389c;background:#efefff}
.bank-box b{color:#202a45}.bank-box span{color:#515c74}

/* Dark surfaces keep bright text. */
.btn.primary,.primary,.btn.primary:hover,.steps>div>b,
.program-card .thumb>span,.message.customer,.member-stat.active,.flash{
  color:#fff!important;
}
.message.customer p,.message.customer small,.member-stat.active strong,
.member-stat.active em,.member-stat.active span{color:#fff!important}
.product-art>span{color:#fff!important}.product-art>small{color:#e8edff!important}
footer,footer b{color:#fff}footer span,footer small{color:#c9d1e3}

/* Ensure links remain visible without looking like body text. */
.section-head>a,.center a,.page-title a,.content-list a{color:#4c45c8;font-weight:800}
.danger{color:#b5283d!important}

@media(max-width:560px){main p,.card p,.detail-layout p{color:#4e5b72}}
