/* Search, option A (2026-11-21): parchment outside, a white card inside, red only for the matched words and the chosen
   result. Overrides the older ⌘K look in all.css (orange glass, ink-textured capitals, peach marks). */
html body #finder#finder.finder{background:color-mix(in srgb,#F5F3EE 88%,#5C4A33) url("img/paper-soft.svg") repeat!important;background-blend-mode:multiply!important;
  border:0!important;border-radius:0!important;padding:14px!important;box-shadow:0 30px 70px -30px rgba(30,20,10,.32),0 2px 8px -4px rgba(30,20,10,.14)!important}
html body .fx-scrim,html body #finder .fx-scrim{background:color-mix(in srgb,#FCFBF9 72%,transparent)!important;-webkit-backdrop-filter:blur(3px)!important;backdrop-filter:blur(3px)!important}
html body #finder .fx-field{background:#fff!important;border-bottom:1px solid var(--ink)!important;height:62px!important;padding:0 18px!important}
html body #finder .fx-icon{color:var(--red)!important}
html body #finder .fx-field input{font:400 23px "EB Garamond Pkg","EB Garamond",serif!important}
html body #finder .fx-field input::placeholder{font-style:normal!important;color:var(--ink3)!important}
html body #finder .fx-scope,html body #finder .fx-best{display:none!important}
/* tabs: plain words, the chosen one red and underlined */
html body #finder .fx-tabs{border-bottom:0!important;margin:6px 4px 8px!important;gap:28px!important}
html body #finder .fx-tab{all:unset;cursor:pointer;position:relative;padding:10px 0 8px!important;font:400 17px/1 "EB Garamond",serif!important;letter-spacing:0!important;text-transform:none!important;
  background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;color:var(--ink3)!important;-webkit-text-stroke:0!important}
html body #finder .fx-tab:hover{color:var(--ink)!important;background:none!important}
html body #finder .fx-tab.on{color:var(--red)!important;background:none!important;-webkit-text-stroke:0!important}
html body #finder .fx-tab.on::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--red)}
html body #finder mark{background:color-mix(in srgb,var(--red) 12%,transparent)!important;color:inherit!important;padding:0 1px}
/* the results: cover, "Ch. 31 · p. 212", the chapter, two lines of the passage */
html body #finder .fx-list{padding:0 2px!important;-webkit-mask-image:none!important;mask-image:none!important;scrollbar-width:none}
html body #finder .fx-item{display:flex!important;gap:14px!important;align-items:flex-start!important;padding:12px 4px!important;border-bottom:1px solid var(--line)!important;background:none!important}
html body #finder .fx-item::before{display:none!important}
html body #finder .fx-item[aria-selected="true"],html body #finder .fx-item:hover{background:none!important}
html body #finder .fx-icov{width:44px!important;height:auto!important;aspect-ratio:2/3;object-fit:cover;flex:none;border:0!important;box-shadow:0 2px 6px -2px rgba(0,0,0,.28)!important;background:#fff}
html body #finder .fx-ib{min-width:0;flex:1}
html body #finder .fx-n{display:block;font:400 11px/1.2 "Times New Roman",Times,Tinos,serif;letter-spacing:.1em;text-transform:uppercase;color:var(--ink3);margin-bottom:3px}
html body #finder .fx-t{display:block;font:600 15.5px/1.3 "EB Garamond",serif;color:var(--ink);margin-bottom:3px}
html body #finder .fx-item[aria-selected="true"] :is(.fx-n,.fx-t){color:var(--red)}
html body #finder .fx-snip{font:400 14.5px/1.42 "EB Garamond",serif!important;color:var(--ink2)!important;-webkit-line-clamp:2!important}
html body #finder .fx-meta{display:none!important}
/* chapters and books tabs on the same parchment, in a white panel */
html body #finder :is(.fx-chlist,.fx-books){background:#fff}
/* before you type */
.fxa-try{display:none}
html body #finder[data-state="idle"] .fxa-try{display:block;padding:6px 6px 4px}
.fxa-tryh{margin:8px 0 2px;font:400 15px "EB Garamond",serif;color:var(--ink3)}
.fxa-try ul{list-style:none;margin:0;padding:0}
.fxa-try li{border-bottom:1px solid var(--line)}
.fxa-try button{all:unset;cursor:pointer;display:block;width:100%;padding:11px 0;font:400 19px "EB Garamond",serif;color:var(--ink2)}
.fxa-try button:hover,.fxa-try button:focus-visible{color:var(--red)}
/* the card: only on wide screens, in the overlay (not the home page's drop-down) */
.fxa-card{display:none}
@media (min-width:900px){
  html body #finder#finder.fxa:not(.drop){width:min(1100px,calc(100vw - 48px))!important}
  html body #finder#finder.fxa.fxa-has:not(.drop):not([hidden])[data-state="results"]{display:grid!important;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto auto minmax(0,1fr);column-gap:22px;height:min(660px,calc(100vh - var(--fx-top) - 48px))}
  #finder.fxa.fxa-has:not(.drop)[data-state="results"]>*{grid-column:1/-1}
  #finder.fxa.fxa-has:not(.drop)[data-state="results"] .fx-field{grid-row:1}
  #finder.fxa.fxa-has:not(.drop)[data-state="results"] .fx-tabs{grid-row:2}
  #finder.fxa.fxa-has:not(.drop)[data-state="results"] .fxa-card:not([hidden]){display:flex;flex-direction:column;grid-column:1;grid-row:3;min-height:0;background:#fff;padding:22px 28px 18px;cursor:pointer;
    box-shadow:0 1px 2px rgba(30,20,10,.06),0 10px 24px -16px rgba(30,20,10,.18)}
  #finder.fxa.fxa-has:not(.drop)[data-state="results"] .fx-list{grid-column:2;grid-row:3;min-height:0;overflow-y:auto}
  #finder.fxa.fxa-has:not(.drop)[data-state="results"] :is(.fx-chlist,.fx-books,.fx-empty){grid-row:3}
}
.fxa-txt{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;font:400 19px/1.6 "EB Garamond",serif;color:var(--ink2);text-indent:1.4em;hyphens:auto;-webkit-hyphens:auto;
  -webkit-mask-image:linear-gradient(#000 85%,transparent);mask-image:linear-gradient(#000 85%,transparent);padding-bottom:20px}
.fxa-txt::-webkit-scrollbar{display:none}
.fxa-txt mark{color:var(--ink)!important}
.fxa-cite{margin:12px 0 0;font:400 15px/1.35 "EB Garamond",serif;color:var(--ink2)}
.fxa-cite b{font-weight:600;color:var(--ink)}
.fxa-card:hover .fxa-cite b{color:var(--red)}
/* phones: full-width sheet, list only (no hover on a phone; a tap opens the passage) */
@media (max-width:640px){html body #finder#finder.finder{padding:8px!important}html body #finder .fx-field{height:54px!important}html body #finder .fx-field input{font-size:19px!important}
  html body #finder .fx-snip{-webkit-line-clamp:3!important}}
/* night */
html.night body #finder#finder.finder{background:#2A2520!important}
html.night body #finder :is(.fx-field,.fxa-card,.fx-chlist,.fx-books){background:#161412!important}
html.night body .fx-scrim{background:color-mix(in srgb,#0B0B0B 70%,transparent)!important}
/* the search inside a book, in the same look */
html:not(.night) body #bks#bks.bks{background:color-mix(in srgb,#F5F3EE 88%,#5C4A33) url("img/paper-soft.svg")!important;background-blend-mode:multiply!important;border-radius:0!important;padding:14px!important;
  box-shadow:0 30px 70px -30px rgba(30,20,10,.32),0 2px 8px -4px rgba(30,20,10,.14)!important}
html body .bks-scrim{background:color-mix(in srgb,#FCFBF9 72%,transparent)!important}
html body .bks-bar{background:#fff;padding:14px 18px 12px!important}
html body .bks-glass{color:var(--red)!important}
html body .bks-list{background:none;padding:0 4px 6px!important}
html body .bks mark{background:color-mix(in srgb,var(--red) 12%,transparent)!important;box-shadow:none!important;border-radius:0!important;padding:0 1px!important}
html body .bks-hit.sel{background:none!important;border-left-color:transparent!important}
html body .bks-hit.sel .bks-pg{color:var(--red)}
html body .bks-hit .bks-sn{font-size:15.5px!important;-webkit-line-clamp:2!important;color:var(--ink2)}
html body .bks-hit.sel .bks-sn{color:var(--ink)}
.bksa-card{display:none}
@media (min-width:900px){
  html body .bks.bksa-has:not([hidden]){width:min(1100px,calc(100vw - 48px))!important;display:grid!important;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto auto auto minmax(0,1fr);column-gap:22px;
    height:min(660px,calc(100vh - clamp(48px,10vh,104px) - 32px))}
  .bks.bksa-has>*{grid-column:1/-1}
  .bks.bksa-has .bksa-card:not([hidden]){display:flex;flex-direction:column;grid-column:1;grid-row:4;min-height:0;background:#fff;padding:22px 28px 18px;cursor:pointer;margin-top:8px;
    box-shadow:0 1px 2px rgba(30,20,10,.06),0 10px 24px -16px rgba(30,20,10,.18)}
  .bks.bksa-has .bks-list{grid-column:2;grid-row:4;min-height:0}
}
html.night body .bks{background:#2A2520!important}
html.night body :is(.bks-bar,.bksa-card){background:#161412!important}
html.night body #bks#bks.bks{background:#2A2520!important}
/* Sign out: no left inset (the shared word-button padding pushed it 14px in) */
html body #app#app main .setends>.setr.out{padding:0!important;margin:0!important}
/* chapter headings in the narrow list: the title keeps its line; "You are reading this" goes under it */
html body .bks-chh{flex-wrap:wrap!important;row-gap:2px}
html body .bks-cht{flex:1 1 auto;min-width:0}
html body .bks-here{order:3;flex-basis:100%}
/* round 2 (the user, 2026-11-21): a lighter frame, the field open on it (not boxed in), the list's scroll bar visible
   with a rule at its top, words in the list plain (the card lights the whole passage) */
html:not(.night) body #finder#finder.finder,html:not(.night) body #bks#bks.bks{background:var(--paper,#FCFBF9) url("img/paper-soft.svg")!important;box-shadow:0 30px 70px -30px rgba(30,20,10,.32),0 0 0 1px var(--line)!important}
html body #finder .fx-field,html body .bks-bar{background:none!important}
html body #finder :is(.fxa-card),html body .bks .bksa-card{box-shadow:0 0 0 1px var(--line)!important}
html body #finder .fx-list,html body .bks-list{scrollbar-width:thin!important;scrollbar-color:color-mix(in srgb,var(--ink) 25%,transparent) transparent;border-top:1px solid var(--line);padding-right:8px!important}
html body #finder .fx-list::-webkit-scrollbar,html body .bks-list::-webkit-scrollbar{width:4px;display:block}
html body #finder .fx-list::-webkit-scrollbar-thumb,html body .bks-list::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--ink) 25%,transparent);border-radius:4px}
html body #finder .fx-item mark,html body .bks-hit mark{background:none!important;color:var(--ink)!important;font-weight:600}
.fxa-txt mark{background:color-mix(in srgb,var(--red) 10%,transparent)!important;color:var(--ink)!important}
html.night body #finder .fx-field,html.night body .bks-bar{background:none!important}
/* Quoted list: covers keep the book's 2:3 shape instead of stretching to the row's height (the user, 2026-11-21) */
html body #app .qtd-r-cv{align-self:flex-start!important;height:auto!important;aspect-ratio:2/3!important;width:84px!important}
html body #app .qtd-r-cv img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}
