/* Bíblia online — layout próprio (entrada, pesquisa por referência, leitura por capítulo). Usa as cores de inicio.css. */
.jb-hero { background: linear-gradient(160deg, #004c46, #00665e 60%, #0a7a6e); color: #fff; }
.jb-hero .ji-largura { padding-top: 48px; padding-bottom: 48px; text-align: center; }
.jb-hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 6px 0 22px; }
.jb-topo { background: linear-gradient(160deg, #004c46, #00665e); color: #fff; }
.jb-topo .ji-largura { padding-top: 22px; padding-bottom: 26px; }
.jb-topo h1 { font-size: clamp(28px, 4vw, 40px); margin: 4px 0 14px; }
.jb-trilha { font-size: 14px; opacity: .9; }
.jb-trilha a { color: #fff !important; }

/* pesquisa */
.jb-busca { max-width: 640px; margin: 0 auto; text-align: left; }
.jb-topo .jb-busca { margin: 0; }
.jb-busca label { display: block; font-weight: 700; margin-bottom: 6px; color: #fff; }
.jb-busca-linha { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.jb-busca input { flex: 1; min-width: 0; border: 0; padding: 10px 16px; font: 17px "Open Sans", sans-serif; border-radius: 999px; color: #1f2a29; }
.jb-busca input:focus { outline: none; }
.jb-busca-linha:focus-within { box-shadow: 0 0 0 3px #f2b705, 0 8px 24px rgba(0,0,0,.18); }
.jb-busca button { border: 0; border-radius: 999px; padding: 0 26px; min-height: 46px; background: #00665e; color: #fff; font: 700 16px "Open Sans", sans-serif; cursor: pointer; }
.jb-busca button:hover { background: #004c46; }
.jb-ajuda { margin: 8px 6px 0; font-size: 14px; color: #e3f1ef; }
.jb-ajuda.erro { color: #fff; font-weight: 700; background: rgba(164,0,15,.55); display: inline-block; padding: 4px 10px; border-radius: 8px; }

/* entrada: livros */
.jb-testamento { color: #00665e; font-size: 26px; margin: 8px 0 16px; display: flex; align-items: baseline; gap: 10px; }
.jb-testamento small { font-size: 15px; color: #4d5b5a; font-weight: 400; }
.jb-livros { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.jb-livros a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #d5e2e0;
  text-decoration: none; box-shadow: 0 2px 6px rgba(0,60,55,.06); min-height: 64px; justify-content: center; }
.jb-livros a:hover { border-color: #00665e; background: #f2f8f7; }
.jb-livros strong { color: #00554e; font-size: 16px; }
.jb-livros span { color: #4d5b5a; font-size: 13px; }

/* leitura */
.jb-leitura { padding-top: 18px; padding-bottom: 40px; max-width: 860px; }
.jb-barra { position: sticky; top: var(--jb-topo, 0px); z-index: 20; display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid #d5e2e0; border-radius: 12px; padding: 8px 10px; box-shadow: 0 4px 14px rgba(0,60,55,.08); margin-bottom: 18px; }
.jb-barra-rotulo { font-weight: 700; color: #00554e; font-size: 14px; flex: 0 0 auto; }
.jb-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.jb-chip { flex: 0 0 auto; min-width: 38px; height: 38px; line-height: 38px; text-align: center; border-radius: 19px; border: 1px solid #b9cbc9;
  color: #00665e !important; text-decoration: none; font-size: 14px; padding: 0 8px; }
.jb-chip:hover { background: #e9f3f2; }
.jb-chip.ativo { background: #00665e; color: #fff !important; border-color: #00665e; font-weight: 700; }
.jb-texto { background: #fff; border: 1px solid #d5e2e0; border-radius: 14px; padding: 8px 28px 20px; box-shadow: 0 6px 24px rgba(0,60,55,.08); }
.jb-cap h2 { color: #00665e; font-size: 24px; margin: 18px 0 12px; }
.jb-v { font-size: 18px; line-height: 1.8; margin: 0 0 6px; color: #23302f; padding: 2px 6px; border-radius: 6px; }
.jb-n { font-size: .66em; font-weight: 700; color: #00665e !important; vertical-align: super; text-decoration: none; margin-right: 2px; }
.jb-v, .jb-cap { scroll-margin-top: 170px; }
.jb-v.destaque { background: #fff3c4; box-shadow: 0 0 0 2px #f2d36b inset; }
.jb-faltando { font-style: italic; color: #6b7a78; }
.jb-capnav, .jb-vizinhos { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.jb-capnav a, .jb-vizinhos a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #b9cbc9;
  color: #00554e !important; text-decoration: none; background: #fff; font-weight: 600; }
.jb-capnav a:hover, .jb-vizinhos a:hover { background: #e9f3f2; }
.jb-js .jb-cap[hidden] { display: none; }
.jb a:focus-visible, .jb input:focus-visible, .jb button:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

@media (max-width: 600px) {
  .jb-texto { padding: 4px 16px 16px; border-radius: 10px; }
  .jb-v { font-size: 17px; }
  .jb-busca button { padding: 0 18px; }
  .jb-barra { border-radius: 0; margin-left: -16px; margin-right: -16px; border-left: 0; border-right: 0; }
}

/* a fileira de capítulos rola por dentro; nunca alarga a página */
.jb-barra { max-width: 100%; }
.jb-chips { min-width: 0; flex: 1 1 auto; }
.jb-leitura { overflow-x: clip; }
