/* Builder contrast guardrail.
   Loaded after the rest of the UI styles so legacy dark-first rules cannot
   make review/publish text unreadable in the light theme. */

html[data-tp-theme="light"] #builderBody .card h1,
html[data-tp-theme="light"] #builderBody .card h2,
html[data-tp-theme="light"] #builderBody .card h3,
html[data-tp-theme="light"] #builderBody .card h4,
html[data-tp-theme="light"] #builderBody .card strong,
html[data-tp-theme="light"] #builderBody .fixture strong{
  color:#071c38!important;
  -webkit-text-fill-color:#071c38!important;
  opacity:1!important;
}

html[data-tp-theme="light"] #builderBody .card .muted,
html[data-tp-theme="light"] #builderBody .fixture small,
html[data-tp-theme="light"] #builderBody .fixture .muted{
  color:#607087!important;
  -webkit-text-fill-color:#607087!important;
  opacity:1!important;
}

/* Explicitly protect the final review card, where the pool name and the
   summary values are rendered as h2/h3 elements on a white surface. */
html[data-tp-theme="light"] #builderBody > .card{
  color:#071c38!important;
}
