/* ESVORIQ surfaces that carry their own borders or focus rules. */
html body :is(.site-header[data-site-nav-v5], .nav-v5-group-panel, [data-nav-menu-panel],
  .nav-v5-account-panel, .account-history, #beta-gate) {
  border: 0;
  outline: none;
  box-shadow: none;
}

main[data-esv-layout] :is(.model-nav, .faq details, .esv-missing-resources) {
  border: 0;
}

/* These links use semantic labels and navigation, rather than a button class. */
html body a:focus-visible {
  outline: none !important;
  text-decoration: underline solid currentColor 2px !important;
  text-underline-offset: .26em;
}

html body .site-header[data-site-nav-v5] .nav-v5-link[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .26em;
}

main[data-esv-layout] .btn-secondary {
  background: var(--hover);
}

main[data-esv-layout] .btn-secondary:hover {
  background: color-mix(in srgb, var(--text) 11%, var(--bg-main));
}

#beta-gate input {
  border: 0;
  outline: none;
  box-shadow: none;
}

#beta-gate input:focus-visible {
  background-image: linear-gradient(var(--hover), var(--hover));
}

@media (forced-colors: active) {
  html body a:focus-visible,
  #beta-gate input:focus-visible {
    forced-color-adjust: none;
    color: HighlightText !important;
    background-color: Highlight !important;
  }
}
