/*
Theme Name: Sheshi Element Audit Corrections
Version: 0.29.0
Description: Resolves cross-page contrast, action-size and inherited-color defects found by the full element audit.
*/

/* The footer is an intentional black brand edge. Light-page text tokens must
   never win there through a more specific legacy selector. */
body.sheshi-home .sheshi-site-footer p,
body.sheshi-home .sheshi-site-footer small,
body.sheshi-home .sheshi-site-footer .sheshi-footer-meta,
body.sheshi-shell .sheshi-site-footer p,
body.sheshi-shell .sheshi-site-footer small,
body.sheshi-shell .sheshi-site-footer .sheshi-footer-meta {
  color: var(--dark-text-muted) !important;
}

body.sheshi-home .sheshi-site-footer a,
body.sheshi-home .sheshi-site-footer a span,
body.sheshi-shell .sheshi-site-footer a,
body.sheshi-shell .sheshi-site-footer a span {
  color: var(--dark-text-secondary) !important;
}

/* Small explanatory copy belongs to the map's dark surface token set. */
body.sheshi-shell .sheshi-map-card-head small,
body.sheshi-shell .sheshi-map-foot small {
  color: var(--dark-text-muted) !important;
}

/* Filled actions keep every child glyph white. Older generic link rules used
   to recolor the external-arrow span Slate on the Slate button. */
.sheshi-search-submit *,
.sheshi-beta-form button[type="submit"] *,
.sheshi-profile-primary-link--cta *,
.sheshi-profile-mobile-primary *,
.sheshi-profile-mobile-callbar a * {
  color: #fff !important;
  stroke: currentColor !important;
}

body.single-listing .sheshi-profile-contact .sheshi-profile-primary-link--cta span,
body.single-listing .sheshi-profile-mobile-actions .sheshi-profile-mobile-primary span,
body.single-listing .sheshi-profile-mobile-callbar a span {
  color: #fff !important;
}

/* The written interaction standard is 44px in every viewport. Do not shrink
   directory actions to the former 36px desktop exception. */
.sheshi-result-details,
.sheshi-result-website {
  min-height: 44px !important;
}

/* Active filters are information and controls, not a second black accent
   family. Keep them inside the selected Slate chip system. */
body.search.sheshi-shell .sheshi-active-filters-label {
  display: inline-flex !important;
  min-height: 36px !important;
  align-items: center !important;
  padding: 7px 12px !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  color: var(--accent) !important;
  background: var(--accent-bg) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.search.sheshi-shell .sheshi-filter-chip {
  min-height: 44px !important;
  padding: 9px 13px !important;
  border-color: var(--border-strong) !important;
  color: var(--text-primary) !important;
  background: var(--surface-card) !important;
}

body.search.sheshi-shell .sheshi-filter-chip span {
  color: var(--accent) !important;
}

body.search.sheshi-shell .sheshi-filter-reset {
  display: inline-flex !important;
  min-height: 44px !important;
  align-items: center !important;
  color: var(--accent) !important;
}

@media (max-width: 767px) {
  body.search.sheshi-shell .sheshi-active-filters .sheshi-filter-reset {
    min-height: 44px !important;
    padding-block: 9px !important;
  }
}

body.search.sheshi-shell .sheshi-filter-chip:hover,
body.search.sheshi-shell .sheshi-filter-chip:focus-visible {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--surface-sunken) !important;
}
