/*
 * a11y-fixes.css for rhythm_mrcs.
 *
 * Scoped overrides for a few WCAG AA contrast misses surfaced by axe and
 * DubBot on modelingjimcrow.virginia.edu. None of these change the visual
 * direction of the design — they slightly deepen colors that are at the
 * edge of the 4.5:1 threshold so they cross it.
 *
 *   - bibliography links: #e41919 on #f9f9f9 (4.48:1) → #c81010 (5.07:1)
 *   - search input placeholder: #777 on white (4.47:1) → #5e5e5e (6.45:1)
 */

/* Bibliography & similar views row links — red on near-white background.
   Parent theme's `a { color: #e41919 }` ships everywhere; we override only
   in-table / in-views contexts to a deeper red that passes AA on #f9f9f9.
   !important because the parent rule wins via load order on some pages
   despite higher specificity from these selectors. */
.views-view-field a,
.view-content tbody a,
table a,
a[href^="/volume/"],
a[href^="https://babel.hathitrust"],
a[href^="https://catalog.hathitrust"],
a[href^="https://archive.org"] {
  color: #c81010 !important;
}
.views-view-field a:hover,
.view-content tbody a:hover,
table a:hover {
  color: #8a0a0a !important;
}

/* Search input placeholder + content (typed text). Brand uses #777 which
   sits just under the AA threshold for normal text on white. */
.form-control,
input.form-control,
input.form-text,
input[type="text"].form-control,
input[type="search"].form-control {
  color: #2a2a2a !important;
}
.form-control::placeholder,
input.form-control::placeholder,
input.form-text::placeholder {
  color: #5e5e5e !important;
  opacity: 1;
}
