/* A0015661-A0015670 shared tool contrast safeguards */
:root{--yitm-tool-ink:#10233f;--yitm-tool-copy:#263a55;--yitm-tool-muted:#46566d;}
/* Light cards nested inside dark heroes must stay readable. */
.hero .form-card,.hero .hero-card,.hero .result-card,.hero .tool-card,
.tool-shell .form-card,.tool-shell .result-card,.section .form-card,.section .result-card{color:var(--yitm-tool-ink)!important;text-shadow:none!important;}
.hero .form-card h1,.hero .form-card h2,.hero .form-card h3,.hero .form-card h4,
.hero .hero-card h1,.hero .hero-card h2,.hero .hero-card h3,.hero .hero-card h4,
.hero .result-card h1,.hero .result-card h2,.hero .result-card h3,.hero .result-card h4,
.tool-shell .form-card h1,.tool-shell .form-card h2,.tool-shell .form-card h3,.tool-shell .form-card h4,
.tool-shell .result-card h1,.tool-shell .result-card h2,.tool-shell .result-card h3,.tool-shell .result-card h4{color:#102a56!important;opacity:1!important;text-shadow:none!important;}
.hero .form-card p,.hero .form-card li,.hero .form-card label,.hero .form-card small,.hero .form-card span,
.hero .hero-card p,.hero .hero-card li,.hero .hero-card label,.hero .hero-card small,.hero .hero-card span,
.hero .result-card p,.hero .result-card li,.hero .result-card label,.hero .result-card small,.hero .result-card span,
.tool-shell .form-card p,.tool-shell .form-card li,.tool-shell .form-card label,.tool-shell .form-card small,.tool-shell .form-card span,
.tool-shell .result-card p,.tool-shell .result-card li,.tool-shell .result-card label,.tool-shell .result-card small,.tool-shell .result-card span{color:var(--yitm-tool-copy)!important;opacity:1!important;text-shadow:none!important;}
.form-card .help-text,.result-card .help-text,.tool-card .help-text,.field-help,.helper-text,.muted{color:var(--yitm-tool-muted)!important;opacity:1!important;}
.form-card input,.form-card textarea,.form-card select,.tool-shell input,.tool-shell textarea,.tool-shell select{color:var(--yitm-tool-ink)!important;background:#fff!important;}
.form-card input::placeholder,.form-card textarea::placeholder,.tool-shell input::placeholder,.tool-shell textarea::placeholder{color:#5b687a!important;opacity:1!important;}
.hero .form-card .btn-light,.hero .form-card .btn-outline,.hero .form-card .chip,
.hero .hero-card .btn-light,.hero .hero-card .btn-outline,.hero .hero-card .chip,
.tool-shell .btn-light,.tool-shell .btn-outline,.tool-shell .chip{color:#102a56!important;background:#fff!important;border-color:#bdc7d5!important;text-shadow:none!important;opacity:1!important;}
.hero .form-card .btn-primary,.hero .hero-card .btn-primary,.tool-shell .btn-primary{opacity:1!important;text-shadow:none!important;}
@media (prefers-contrast:more){.form-card,.result-card,.hero-card{border-color:#6b7789!important}.form-card input,.form-card textarea,.form-card select{border-color:#526174!important}}

/* A0015701-A0015710: force readable dark text inside light quick-choice cards. */
.hero .yitm-quick-choice,
.yitm-triage-hub .yitm-quick-choice,
main .yitm-quick-choice {
  background:#ffffff!important;
  color:#10233f!important;
  text-shadow:none!important;
}
.hero .yitm-quick-choice h1,
.hero .yitm-quick-choice h2,
.hero .yitm-quick-choice h3,
.yitm-triage-hub .yitm-quick-choice h1,
.yitm-triage-hub .yitm-quick-choice h2,
.yitm-triage-hub .yitm-quick-choice h3,
main .yitm-quick-choice h1,
main .yitm-quick-choice h2,
main .yitm-quick-choice h3 {
  color:#102a56!important;
  opacity:1!important;
  text-shadow:none!important;
}
.hero .yitm-quick-choice p,
.hero .yitm-quick-choice span,
.hero .yitm-quick-choice small,
.yitm-triage-hub .yitm-quick-choice p,
.yitm-triage-hub .yitm-quick-choice span,
.yitm-triage-hub .yitm-quick-choice small,
main .yitm-quick-choice p,
main .yitm-quick-choice span,
main .yitm-quick-choice small {
  color:#263a55!important;
  opacity:1!important;
  text-shadow:none!important;
}
.hero .yitm-choice-actions a:not(:first-child),
.yitm-triage-hub .yitm-choice-actions a:not(:first-child),
main .yitm-choice-actions a:not(:first-child) {
  color:#102a56!important;
  background:#ffffff!important;
  border-color:#aeb9c8!important;
  opacity:1!important;
  text-shadow:none!important;
}
.hero .yitm-choice-actions a:first-child,
.yitm-triage-hub .yitm-choice-actions a:first-child,
main .yitm-choice-actions a:first-child {
  color:#ffffff!important;
  background:#111827!important;
  opacity:1!important;
  text-shadow:none!important;
}
.hero-image-card .hero-image-caption {
  color:#ffffff!important;
  background:#061a33!important;
  opacity:1!important;
  text-shadow:none!important;
}
