/* Mercado controls must not use Safari's native blue button/link text. */
html[data-market-colors] { --market-control-ink: #11110f; }
html[data-market-colors][data-theme="dark"] { --market-control-ink: #f5f5ef; }
html[data-market-colors] :is(.card,.chip,.city-option,.secondary,.icon-btn) {
  color: var(--market-control-ink);
}
html[data-market-colors] .chip.active { color: #fff; }
html[data-market-colors][data-theme="dark"] .chip.active { color: #111; }
html[data-market-colors] .card .badge { color: #000; }
/* Resolve text fill on each descendant so muted categories keep their own color. */
html[data-market-colors] :is(.card,.chip,.city-option,.secondary,.icon-btn,.primary,.founder-button,.location,.location-later,.nav-link,.carousel-arrow,.theme-toggle,.whatsapp-float),
html[data-market-colors] :is(.card,.chip,.city-option,.secondary,.primary,.founder-button) * {
  -webkit-text-fill-color: currentColor;
  -webkit-tap-highlight-color: rgba(255,212,0,.28);
}
/* Anchor variants keep the same component palette in every link state. */
html[data-market-colors] :is(a.card,a.chip,a.city-option,a.secondary,a.icon-btn):is(:link,:visited,:hover,:active,:focus-visible) {
  color: var(--market-control-ink);
  -webkit-text-fill-color: currentColor;
}
html[data-market-colors] a.chip.active:is(:link,:visited,:hover,:active,:focus-visible) { color:#fff; }
html[data-market-colors][data-theme="dark"] a.chip.active:is(:link,:visited,:hover,:active,:focus-visible) { color:#111; }
html[data-market-colors] :is(a.primary,a.founder-button,a.whatsapp-float):is(:link,:visited,:hover,:active,:focus-visible) { color:#000; -webkit-text-fill-color:currentColor; }
html[data-market-colors] a.nav-link:is(:link,:visited,:active,:focus-visible) { color:#fff; -webkit-text-fill-color:currentColor; }
html[data-market-colors] a.nav-link:hover { color:var(--yellow); }
/* Retain the existing dark callout CTA; do not recolor editorial/footer links. */
html[data-market-colors] .collab-callout .secondary,html[data-market-colors] .collab-callout a.secondary:is(:link,:visited,:hover,:active,:focus-visible) { color:#fff; }
html[data-market-colors][data-theme="dark"] .collab-callout .secondary,html[data-market-colors][data-theme="dark"] .collab-callout a.secondary:is(:link,:visited,:hover,:active,:focus-visible) { color:#111; }
