/* WTWR_RESULTS_STRATEGY_HORSE_EMPHASIS_V1
   Results strategy tabs: the horse side actually selected by the strategy
   remains fully bright. The opposite/context horse is subdued.
   RESULT BADGES remain full-strength so the real outcome is never hidden.
*/

#resultsTable td.wtwr-results-strategy-side-context{
  background:rgba(2,7,13,.64)!important;
  box-shadow:inset 0 0 0 9999px rgba(2,7,13,.10)!important;
}

/* Dim the contents by component instead of dimming the TD itself.
   That lets a 1ST/2ND/3RD/LOST badge remain fully visible. */
#resultsTable td.wtwr-results-strategy-side-context .prediction-pick > *{
  opacity:.34!important;
  filter:saturate(.22) brightness(.72)!important;
  transition:opacity .16s ease,filter .16s ease!important;
}

/* Horse + result badge share this row. Keep the row normal, then dim the horse only. */
#resultsTable td.wtwr-results-strategy-side-context .prediction-pick > .horse-result-line{
  opacity:1!important;
  filter:none!important;
}
#resultsTable td.wtwr-results-strategy-side-context .horse-result-line .horse{
  opacity:.34!important;
  filter:saturate(.22) brightness(.72)!important;
}

/* The actual finishing result must stay obvious even on the context horse.
   In particular, 1ST stays bright red exactly as Results already renders it. */
#resultsTable td.wtwr-results-strategy-side-context .result-badge{
  opacity:1!important;
  filter:none!important;
}

/* Strategy-selected side always wins any visual priority battle with the
   advanced-filter emphasis layer. */
#resultsTable td.wtwr-results-strategy-side-selected{
  opacity:1!important;
  filter:none!important;
}
#resultsTable td.wtwr-results-strategy-side-selected .prediction-pick,
#resultsTable td.wtwr-results-strategy-side-selected .prediction-pick > *,
#resultsTable td.wtwr-results-strategy-side-selected .horse-result-line,
#resultsTable td.wtwr-results-strategy-side-selected .horse{
  opacity:1!important;
  filter:none!important;
}
