/* Easy Reader accessibility adjustments for the public site shell. */
:root {
  --ern-accessible-red: #d90005;
}

.text-primary,
[class~="hover:text-primary"]:hover,
[class~="group-hover:text-primary"]:is(:hover, :focus-visible),
.group:hover [class~="group-hover:text-primary"] {
  color: var(--ern-accessible-red);
}

.bg-primary,
[class~="hover:bg-primary"]:hover {
  background-color: var(--ern-accessible-red);
}

[class~="text-muted-foreground/60"],
footer .text-gray-400 {
  color: #606877;
}

footer a[href="https://alcohq.com/"] {
  text-decoration: underline;
  text-underline-offset: .18em;
}

#root :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
#ern-main-content:focus-visible {
  outline: 2px solid #1f2937;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px white;
}

.ern-skip-link {
  position: fixed;
  z-index: 2147483647;
  top: 8px;
  left: 8px;
  transform: translateY(calc(-100% - 16px));
  padding: 12px 16px;
  background: white;
  color: #1f2937;
  border: 2px solid currentColor;
}

.ern-skip-link:focus {
  transform: none;
}

[class~="bg-[hsl(358_100%_50%)]"] {
  background-color: var(--ern-accessible-red);
}

main .ern-search-form button {
  background-color: var(--ern-accessible-red);
}

[class~="text-muted-foreground/70"],
.article-content .italic > p,
main .italic > p {
  color: #606877;
}
