/* Shared hairline frames; border styles are preserved, so borderless items stay borderless. */
:root:root body *,:root:root body *::before,:root:root body *::after {
  border-width: .5px !important;
}

/* Keep the three navigation cells and their hit areas in their original positions. */
:root:root body .scripture-nav,
:root:root body .scripture-nav > .scripture-menu {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
:root:root body > header,:root:root body > .topbar {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Preserve the header's geometry, and keep the large central home logo. */
html body:has(#search) > header .brand {
  visibility: hidden !important;
  pointer-events: none;
}

/* Hover alone does not change the selected scripture. */
:root:root body .scripture-menu > button {
  border: .5px solid #777 !important;
  background: #292929 !important;
  color: #bcbcbc !important;
  box-shadow: none !important;
}
:root:root body[data-selected-work="quran"] .scripture-menu[data-work="quran"] > button,
:root:root body[data-selected-work="new-testament"] .scripture-menu[data-work="new-testament"] > button,
:root:root body[data-selected-work="old-testament"] .scripture-menu[data-work="old-testament"] > button {
  border-color: #f8941c !important;
  color: #bcbcbc !important;
}

/* Reading cards stay quiet until the pointer or keyboard reaches them. */
:root:root body #verses > .verse {
  border-color: #686868 !important;
  transition: border-color .18s ease, background-color .18s ease;
}
:root:root body #verses > .verse:hover,
:root:root body #verses > .verse:focus-visible {
  border-color: #f8941c !important;
}
:root:root body .layers .layer {
  border-color: #686868 !important;
  background: #292929 !important;
  color: #bcbcbc !important;
}
:root:root body .layers .layer[aria-pressed="true"] {
  border-color: #f8941c !important;
  background: #292929 !important;
  color: #bcbcbc !important;
}

/* Search highlights only while a field or its submit button has focus. */
:root:root body #search,
:root:root body .global-search,
:root:root body #root-search {
  border-color: #686868 !important;
}
:root:root body #search:focus-within,
:root:root body .global-search:focus-within,
:root:root body #root-search:focus-within {
  border-color: #f8941c !important;
}
