/* The search tabs (card #1486, search-tabs.js): Bible · Resources · Chat over each search, the one in use underlined.
   Underlined words, not filled buttons, so they don't look like the chips under them (the design approved November 29). */
.search-tabs { display: flex; border-bottom: 1px solid var(--divider); margin: 0; }
.search-tabs [role=tab] { flex: 1; min-height: 44px; min-width: 0; margin: 0 0 -1px; padding: .55rem .2rem .45rem; border: 0; border-radius: 0;
  border-bottom: 3px solid transparent; background: none; color: var(--muted); font: inherit; font-size: .9375rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-tabs [role=tab][aria-selected=true] { border-bottom-color: var(--selected); color: var(--text); }
.search-tabs [role=tab]:hover { color: var(--text); background: none; }
.search-tabs [role=tab]:focus-visible { outline: 2px solid var(--selected); outline-offset: -2px; }

/* Over the Bible search: at its top, under a phone's notch (its header then needs no room for it). */
.b-find > .search-tabs { padding-top: env(safe-area-inset-top); flex: none; }
.b-find > .search-tabs + header { padding-top: .6rem; }
@media (min-width: 760px) { .b-find > .search-tabs { width: 100%; max-width: 46rem; margin: 0 auto; } }
/* Under the chat's search box. */
.search-panel > .search-tabs { flex: none; }
/* Over Resources' search: in the page's column, a little room before its box. */
.rs > .search-tabs { margin: 0 0 .7rem; }

/* While another search lies over the Resources page, the page's own row stays out of the way (only one marked). */
body:has(.b-find, .search-panel, .rs-panel) .rs:not(.rs-panel .rs) > .search-tabs { display: none; }

/* The Resources search on the chat page: a panel over it, as the chat's search lies over it. */
.rs-panel { position: fixed; inset: 0; z-index: 40; background: var(--panel, var(--bg)); color: var(--text); overflow-y: auto;
  padding-top: env(safe-area-inset-top); }
.rs-panel .rs-panel-wait p, .rs-panel > .rs-panel-wait:not(.rs) { color: var(--muted); }
.rs-panel > p.rs-panel-wait { max-width: 46rem; margin: 2rem auto; padding: 0 1rem; }
