/* MOHU Midnight Dark visibility correction — 2026-09-19
   Applies to shared opportunity components wherever they render (guest or signed-in).
   Presentation only. No auth, registry, payment or data behavior. */

html[data-mohu-theme="dark"] :is(.mohu-i-categories>a,.mohu-l-featured-card,.mohu-i-opportunity-panel,.mohu-i-closing,.mohu-browse-panel){
  background:#142033!important;
  background-image:none!important;
  border-color:#58708d!important;
  color:#fff!important;
  box-shadow:0 8px 24px rgba(0,0,0,.24)!important;
}

/* Browse by type */
html[data-mohu-theme="dark"] .mohu-i-categories>a strong{color:#fff!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-i-categories>a small{color:#d9e4f2!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-i-categories>a em{
  background:#173d68!important;color:#bfe5ff!important;border:1px solid #315b86!important;opacity:1!important
}
html[data-mohu-theme="dark"] .mohu-phase1-section-title :is(h1,h2,h3,strong){color:#fff!important}
html[data-mohu-theme="dark"] .mohu-phase1-section-title a{color:#7fdcff!important}

/* Featured opportunity */
html[data-mohu-theme="dark"] .mohu-i-featured-grid>a.mohu-l-featured-card{background:#142033!important;border-color:#58708d!important;color:#fff!important}
html[data-mohu-theme="dark"] .mohu-l-featured-copy>strong{color:#fff!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-l-featured-copy>small,
html[data-mohu-theme="dark"] .mohu-l-featured-deadline>small,
html[data-mohu-theme="dark"] .mohu-l-featured-card .mohu-s6-poster{color:#d9e4f2!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-l-featured-card .mohu-s6-poster b{color:#fff!important}
html[data-mohu-theme="dark"] .mohu-l-featured-deadline em{background:#173d68!important;color:#bfe5ff!important;border:1px solid #315b86!important}
html[data-mohu-theme="dark"] .mohu-l-featured-tags b{background:#5a4212!important;color:#ffe29a!important;border:1px solid #8a6820!important}
html[data-mohu-theme="dark"] .mohu-l-featured-tags i{background:#153f2c!important;color:#a9f0c7!important;border:1px solid #286a4b!important}

/* Latest opportunities */
html[data-mohu-theme="dark"] .mohu-i-opportunity-panel .mohu-h-section-head :is(h1,h2,h3,strong){color:#fff!important}
html[data-mohu-theme="dark"] .mohu-i-opportunity-panel .mohu-h-section-head p{color:#d9e4f2!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-i-opportunity-panel .mohu-h-section-head>a{color:#7fdcff!important}
html[data-mohu-theme="dark"] .mohu-i-opportunity-row{color:#fff!important;border-color:#58708d!important}
html[data-mohu-theme="dark"] .mohu-i-op-copy>strong{color:#fff!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-i-op-copy>small,
html[data-mohu-theme="dark"] .mohu-i-deadline small,
html[data-mohu-theme="dark"] .mohu-i-opportunity-row .mohu-s6-poster{color:#d9e4f2!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-i-deadline b,
html[data-mohu-theme="dark"] .mohu-i-opportunity-row .mohu-s6-poster b{color:#fff!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-h-op-icon{background:#dceaf5!important;color:#0b2851!important;border-color:#9db4c9!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-h-op-tags em{background:#153f2c!important;color:#a9f0c7!important;border-color:#286a4b!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-i-deadline em{background:#173d68!important;color:#bfe5ff!important;border:1px solid #315b86!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-i-opportunity-row{border-bottom-color:#58708d!important}

/* Closing soon */
html[data-mohu-theme="dark"] .mohu-i-closing h2{color:#fff!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-i-closing>a:not(.btn){color:#fff!important;border-bottom-color:#58708d!important}
html[data-mohu-theme="dark"] .mohu-i-closing>a span strong{color:#fff!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-i-closing>a span small{color:#d9e4f2!important;opacity:1!important}
html[data-mohu-theme="dark"] .mohu-i-closing>a>b{background:#54242c!important;color:#ffb7bd!important;border:1px solid #7c3540!important;padding:5px 8px!important;border-radius:999px!important;opacity:1!important}

/* Shared section headings and browse controls */
html[data-mohu-theme="dark"] .mohu-h-section-head :is(h1,h2,h3,strong){color:#fff!important}
html[data-mohu-theme="dark"] .mohu-h-section-head p{color:#d9e4f2!important}
html[data-mohu-theme="dark"] .mohu-h-section-head>a{color:#7fdcff!important}
html[data-mohu-theme="dark"] .mohu-browse-heading h2,
html[data-mohu-theme="dark"] .mohu-browse-field label{color:#fff!important}
html[data-mohu-theme="dark"] .mohu-browse-heading p{color:#d9e4f2!important}
html[data-mohu-theme="dark"] .mohu-browse-field select{background:#0f1b2c!important;color:#fff!important;border-color:#58708d!important}

/* Buttons remain unmistakable. */
html[data-mohu-theme="dark"] :is(.mohu-i-viewall .btn,.mohu-i-closing>.btn){background:#12477f!important;color:#fff!important;border-color:#2d6eae!important;opacity:1!important}

/* ==========================================================================
   MOHU — SITE-WIDE THEME-AWARE TEXT ENTRY FIELDS — 2026-09-25
   This file is loaded after the main appearance stylesheet, so this rule is
   intentionally here to defeat legacy/page-local black text-entry styling.
   ========================================================================== */
html{
  --mohu-entry-bg:#ffffff;
  --mohu-entry-text:#102544;
  --mohu-entry-border:#dbe4ee;
  --mohu-entry-placeholder:#6b778c;
}
html[data-mohu-theme="original"]{
  --mohu-entry-bg:#ffffff;
  --mohu-entry-text:#102544;
  --mohu-entry-border:#dbe4ee;
  --mohu-entry-placeholder:#6b778c;
}
html[data-mohu-theme="ocean"]{
  --mohu-entry-bg:#f7fdff;
  --mohu-entry-text:#12364b;
  --mohu-entry-border:#b9dce8;
  --mohu-entry-placeholder:#607d8b;
}
html[data-mohu-theme="emerald"]{
  --mohu-entry-bg:#f7fff9;
  --mohu-entry-text:#143522;
  --mohu-entry-border:#b6d8c0;
  --mohu-entry-placeholder:#607565;
}
html[data-mohu-theme="sunset"]{
  --mohu-entry-bg:#fff8f1;
  --mohu-entry-text:#4a2315;
  --mohu-entry-border:#f2c5a5;
  --mohu-entry-placeholder:#815a49;
}
html[data-mohu-theme="violet"]{
  --mohu-entry-bg:#fbf8ff;
  --mohu-entry-text:#32175b;
  --mohu-entry-border:#d2bdf1;
  --mohu-entry-placeholder:#725d91;
}
html[data-mohu-theme="dark"]{
  --mohu-entry-bg:#0f1b2c;
  --mohu-entry-text:#f7fbff;
  --mohu-entry-border:#58708d;
  --mohu-entry-placeholder:#aebed1;
}

html :is(
 input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="color"]),
 textarea,
 select,
 .form-control
){
  background:var(--mohu-entry-bg)!important;
  background-color:var(--mohu-entry-bg)!important;
  color:var(--mohu-entry-text)!important;
  -webkit-text-fill-color:var(--mohu-entry-text)!important;
  border-color:var(--mohu-entry-border)!important;
  caret-color:var(--mohu-entry-text)!important;
}
html :is(input,textarea)::placeholder{
  color:var(--mohu-entry-placeholder)!important;
  -webkit-text-fill-color:var(--mohu-entry-placeholder)!important;
  opacity:1!important;
}

