/* WeBíblia (Bíblia na Web) — folha de estilo
   Papel branco, tinta escura, um fio de ocre para marcar o que importa. */

:root {
  --paper: #ffffff;
  --ink: #1f1b16;
  --muted: #6d665c;
  --rule: #e6dfd3;
  --rule-strong: #cfc5b4;
  --ochre: #b37a1c;
  --tint: #f7ecd6;
  --mark: #f2e0b3;
  --field: #fffdf9;
  --fs: 1;
  --brand: #a8701c;
  /* Larguras que acompanham o ecrã */
  --wrap: 114rem;                                 /* topo, selector e páginas */
  --read: 94rem;                                  /* coluna de leitura */
  --gutter: clamp(1rem, 4vw, 4rem);               /* margem lateral */
  --text-size: clamp(1.08rem, .9rem + .56vw, 1.75rem);
  --serif-text: "Literata", Georgia, "Times New Roman", serif;
  --serif-display: "EB Garamond", Garamond, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #1a1713;
  --ink: #ebe3d5;
  --muted: #a69d8e;
  --rule: #352f27;
  --rule-strong: #4a4237;
  --ochre: #d6a44c;
  --tint: #3a3022;
  --mark: #574524;
  --field: #221e19;
  --brand: #d6a44c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; outline: none; }

a { color: inherit; text-decoration-color: var(--ochre); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; border-radius: 2px; }

.sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 50;
  background: var(--ink); color: var(--paper); padding: .5rem .8rem; font-family: var(--sans);
}
.skip:focus { top: .5rem; }

.muted { color: var(--muted); }

/* ---------- Topo ---------- */

.top { border-bottom: 1px solid var(--rule); }

.top-in {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .7rem var(--gutter);
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; min-width: 0;
  font-family: var(--serif-display); font-size: 1.35rem; font-weight: 500; letter-spacing: .01em;
}
.brand img { flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-wrap { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; overflow: visible !important; }
.brand .wm-sub { overflow: visible; line-height: 1.35; padding-top: .1em; }
.wm-sub {
  font-family: var(--sans); font-size: .62rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-top: .18rem;
}

.tools { display: flex; align-items: center; gap: .15rem; font-family: var(--sans); font-size: .9rem; }

.tool {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 2.5rem; padding: 0 .55rem;
  background: none; border: 0; color: var(--ink); cursor: pointer;
  text-decoration: none; font: inherit; border-radius: 4px;
}
.tool:hover { background: var(--tint); }
.tool svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }

.langs { display: inline-flex; margin: 0 .25rem; border: 1px solid var(--rule-strong); border-radius: 4px; overflow: hidden; }
.langs a { padding: .3rem .5rem; text-decoration: none; font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
.langs a + a { border-left: 1px solid var(--rule-strong); }

/* Campos */

select, input[type="search"], .seek button, .passage .go {
  font: inherit; font-family: var(--sans); font-size: .95rem; color: var(--ink);
  min-height: 2.75rem; border: 1px solid var(--rule-strong); border-radius: 4px;
  background-color: var(--field);
}

select {
  appearance: none; -webkit-appearance: none; width: 100%;
  padding: .45rem 2rem .45rem .65rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 55%, calc(100% - .7rem) 55%;
  background-size: .35rem .35rem; background-repeat: no-repeat;
  text-overflow: ellipsis;
}

input[type="search"] { padding: .45rem .7rem; width: 100%; }

.seek button, .passage .go {
  padding: 0 1.1rem; cursor: pointer; background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.seek button:hover, .passage .go:hover { background: var(--ochre); border-color: var(--ochre); }

.searchrow { display: none; max-width: var(--wrap); margin: 0 auto; padding: .2rem var(--gutter) 1rem; border-bottom: 1px solid var(--rule); }
.searchrow.open { display: block; }

/* Pesquisa por palavras ou frase */
.seek { display: flex; flex-wrap: wrap; gap: .7rem .6rem; align-items: flex-end; }
.seek .f-q { flex: 1 1 100%; }
.seek-bar .f-q { flex: 2 1 18rem; }
.seek .f-scope { flex: 1 1 13rem; }
.seek .match { flex: 1 1 auto; }
.seek button { flex: 0 0 auto; }
.seek-panel { margin-top: 1.1rem; }
.seek-panel input[type="search"] { font-size: 1.05rem; min-height: 3rem; }

.match { margin: 0; padding: 0; border: 0; min-width: 0; font-family: var(--sans); font-size: .92rem; }
.match legend {
  padding: 0; margin-bottom: .2rem;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.match label { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; margin-right: 1.1rem; cursor: pointer; }
.match input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--ochre); }

.lead { margin: .2rem 0 0; }
.home-search { margin: 0 0 2.6rem; }

.refine { margin: 1rem 0 .5rem; }
.refine summary {
  cursor: pointer; font-family: var(--sans); font-size: .92rem; display: inline-block; padding: .3rem 0;
  text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: .2em;
}
.refine[open] summary { margin-bottom: .2rem; }

.passage {
  max-width: var(--wrap); margin: 0 auto; padding: .2rem var(--gutter) 1rem;
  display: flex; flex-wrap: wrap; gap: .6rem .5rem; align-items: flex-end;
}
.passage .f-book { flex: 1 1 11rem; }
.passage .f-num { flex: 0 1 5.4rem; }
.passage .f-ver { flex: 1 1 14rem; }
.passage .go { flex: 0 0 auto; }

input[type="number"] {
  font: inherit; font-family: var(--sans); font-size: .95rem; color: var(--ink); width: 100%;
  min-height: 2.75rem; padding: .45rem .6rem; border: 1px solid var(--rule-strong); border-radius: 4px;
  background: var(--field); -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { opacity: .5; }

/* Modos de busca: Capítulo · Versículos · Intervalo */
.modes {
  flex: 1 1 100%; margin: 0; padding: 0; border: 0; min-width: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .9rem;
  font-family: var(--sans); font-size: .9rem;
}
.modes legend {
  float: left; margin-right: .3rem; padding: 0;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.modes label { position: relative; cursor: pointer; }
.modes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.modes span {
  display: inline-block; padding: .35rem .1rem .3rem; border-bottom: 2px solid transparent; color: var(--muted);
}
.modes input:checked + span { color: var(--ink); border-bottom-color: var(--ochre); font-weight: 600; }
.modes input:focus-visible + span { outline: 2px solid var(--ochre); outline-offset: 2px; }
.modes label:hover span { color: var(--ink); }

.passage[data-mode="ch"] .f-vs, .passage[data-mode="ch"] .f-ve, .passage[data-mode="ch"] .f-c2,
.passage[data-mode="vs"] .f-c2 { display: none; }

.field { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.field > span {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Páginas genéricas ---------- */

.page, .reading { max-width: var(--wrap); margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.6rem) var(--gutter) 3rem; }
.reading, .search-page, .saved-page, .book-page { max-width: var(--read); }

.page h1, .page h2, .page h3 { font-family: var(--serif-display); font-weight: 500; line-height: 1.2; }
.page h1 { font-size: 2.3rem; margin: .1rem 0 .3rem; }

.kicker {
  margin: 0; font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

.empty { font-style: italic; color: var(--muted); }

.notice { border-top: 2px solid var(--ochre); padding-top: .8rem; margin: 1.5rem 0; }
.notice h2 { font-family: var(--serif-display); font-weight: 500; font-size: 1.4rem; margin: 0 0 .4rem; }

/* ---------- Leitura ---------- */

.chapter-head { text-align: center; margin-bottom: 1.6rem; }
.book-title {
  margin: 0; font-family: var(--serif-display); font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase;
}
.book-title a { text-decoration: none; }
.book-title a:hover { text-decoration: underline; text-decoration-color: var(--ochre); }
.chapter-num {
  margin: .1rem 0 0; font-family: var(--serif-display); font-weight: 400; font-size: 4.6rem; line-height: 1;
}
.version-line { margin: .4rem 0 0; font-style: italic; color: var(--muted); font-size: .95rem; }
.chapter-head::after {
  content: ""; display: block; width: 3.5rem; height: 1px; background: var(--ochre); margin: 1.2rem auto 0;
}

.passage-ref {
  margin: .25rem 0 0; font-family: var(--serif-display); font-weight: 400; font-size: 3.1rem; line-height: 1.05;
  font-variant-numeric: lining-nums;
}
.chap-sub {
  display: flex; align-items: center; gap: .8rem; margin: 2.2rem 0 1rem;
  font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.chap-sub::before, .chap-sub::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.chap-sub a { text-decoration: none; }
.chap-sub a:hover { text-decoration: underline; text-decoration-color: var(--ochre); }
.passage-view .hint + .chap-sub { margin-top: .4rem; }

.context {
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: baseline;
  margin-top: 3rem; padding-top: 1.1rem; border-top: 1px solid var(--rule);
  font-family: var(--serif-display); font-size: 1.1rem;
}
.context .kicker { flex-basis: 100%; }

.hint { font-family: var(--sans); font-size: .82rem; color: var(--muted); text-align: center; margin: 0 0 1.4rem; }

.text {
  font-size: calc(var(--text-size) * var(--fs));
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* Cada versículo na sua linha, com o número numa coluna à esquerda */
.vs {
  display: block; position: relative;
  margin: 0 -.5em .4em; padding: .15em .5em .15em 2.6em;
  cursor: pointer; border-radius: 4px;
  transition: background-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.vs:hover { background: color-mix(in srgb, var(--tint) 55%, transparent); }
.vs:focus-visible { outline: none; background: var(--tint); }
.vs.sel { background: var(--tint); box-shadow: inset 3px 0 0 var(--ochre); }
.vs:target { animation: flash 2.6s ease-out; }
@keyframes flash { 0%, 35% { background: var(--mark); } 100% { background: transparent; } }

.vn {
  position: absolute; left: 0; top: 0; width: 3.4em; padding-right: .7em; text-align: right;
  font-family: var(--sans); font-size: .62em; font-weight: 600; color: var(--muted);
  line-height: calc(1.75em / .62); padding-top: .25em; user-select: none;
  font-variant-numeric: tabular-nums;
}

.text mark, .results mark, blockquote mark { background: var(--mark); color: inherit; padding: 0 .1em; border-radius: 2px; }

.pager {
  display: flex; justify-content: space-between; gap: 1rem; align-items: stretch;
  margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule);
  font-family: var(--serif-display); font-size: 1.15rem;
}
.pager a { text-decoration: none; display: flex; flex-direction: column; padding: .3rem 0; min-width: 0; }
.pager a:hover { text-decoration: underline; text-decoration-color: var(--ochre); }
.pager small { font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager .prev small::before { content: "← "; }
.pager .next { text-align: right; margin-left: auto; }
.pager .next small::after { content: " →"; }
.pager.small { font-family: var(--sans); font-size: .9rem; align-items: center; }
.pager.small .prev::before { content: "← "; }
.pager.small .next::after { content: " →"; }

/* Barra de acções do versículo seleccionado */

.selbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--paper); border-top: 1px solid var(--rule-strong);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: .5rem 1rem; flex-wrap: wrap;
  font-family: var(--sans); font-size: .9rem;
}
.selbar[hidden] { display: none; }
.selhead { display: flex; align-items: center; gap: .6rem; }
.selref { font-weight: 600; }
.selbtns { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.selbtns button, .selhead .x {
  font: inherit; min-height: 2.5rem; padding: 0 .9rem; cursor: pointer;
  border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--paper); color: var(--ink);
}
.selbtns button:hover, .selhead .x:hover { border-color: var(--ochre); background: var(--tint); }
.selhead .x { font-size: 1.3rem; line-height: 1; padding: 0 .75rem; min-height: 2.25rem; border-color: transparent; }

/* Na pesquisa, só interessa escolher a versão */
.view-search .passage .modes, .view-search .passage .f-book, .view-search .passage .f-num, .view-search .passage .go,
.view-saved .passage { display: none !important; }
.only-share { display: none; }
.can-share .only-share { display: inline-block; }
body.has-sel { padding-bottom: 6rem; }

/* ---------- Início ---------- */

.daily { margin: 0 0 2rem; }
.daily blockquote {
  margin: .8rem 0 0; position: relative;
  font-family: var(--serif-display); font-style: italic; font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2.2rem); line-height: 1.4;
}
.daily blockquote::before {
  content: "“"; position: absolute; left: -.05em; top: -.35em;
  font-size: 4.5rem; line-height: 1; color: var(--ochre); opacity: .55; font-style: normal;
}
.daily blockquote p { margin: 0; padding-top: 1.1rem; }
.daily figcaption {
  margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: baseline;
  font-family: var(--sans); font-size: .92rem;
}
.daily cite { font-style: normal; font-weight: 600; letter-spacing: .02em; }

.quick {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  padding: .9rem 0; margin: 0 0 2.2rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: .95rem;
}

.index-title { font-size: 1.6rem; margin: 0 0 .2rem; }
.testament {
  font-family: var(--sans) !important; font-size: .75rem !important; font-weight: 600 !important;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .5rem;
}
.books {
  list-style: none; margin: 0; padding: 0;
  columns: 10.5rem auto; column-gap: 1.5rem;
}
.books li { break-inside: avoid; }
.books a { display: block; padding: .32rem 0; text-decoration: none; border-bottom: 1px dotted var(--rule); }
.books a:hover { text-decoration: underline; text-decoration-color: var(--ochre); }

/* ---------- Livro ---------- */

.chapter-list {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(3.1rem, 1fr)); gap: .35rem;
}
.chapter-list a {
  display: flex; align-items: center; justify-content: center; min-height: 2.9rem;
  text-decoration: none; font-family: var(--serif-display); font-size: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.chapter-list a:hover { background: var(--tint); border-bottom-color: var(--ochre); }

/* ---------- Pesquisa e guardados ---------- */

.results, .saved-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.results li, .saved-list li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.results .ref, .saved-list .ref {
  font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: .02em; text-decoration: none;
}
.results .ref:hover, .saved-list .ref:hover { text-decoration: underline; text-decoration-color: var(--ochre); }
.results p, .saved-list p { text-align: justify; hyphens: auto; margin: .3rem 0 0; font-size: calc(1.05rem * var(--fs)); line-height: 1.7; }
.saved-list .meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem;
  margin-top: .5rem; font-family: var(--sans); font-size: .8rem; color: var(--muted);
}
.saved-list button {
  font: inherit; cursor: pointer; background: none; border: 0; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--ochre); padding: .4rem 0; min-height: 2.25rem;
}

/* ---------- Rodapé e avisos ---------- */

.foot {
  border-top: 1px solid var(--rule); padding: 1.2rem 1rem 1.6rem;
  font-family: var(--sans); font-size: .82rem; color: var(--muted); text-align: center;
}
.foot p { margin: .2rem auto; max-width: var(--read); }
.fontctl { display: flex; justify-content: center; gap: .4rem; margin-top: .7rem !important; }
.fontctl button {
  font: inherit; font-size: .9rem; min-width: 2.75rem; min-height: 2.5rem; cursor: pointer;
  border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--paper); color: var(--ink);
}

.toast {
  position: fixed; left: 50%; bottom: 1.2rem; z-index: 40; transform: translate(-50%, 1rem);
  background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: .9rem;
  padding: .6rem 1rem; border-radius: 4px; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; display: flex; gap: 1rem; align-items: center;
  max-width: calc(100% - 2rem);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
body.has-sel .toast { bottom: 7rem; }
.toast button { font: inherit; background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: .2rem 0; }

/* ---------- Ecrãs pequenos ---------- */

@media (max-width: 640px) {
  .tool .lbl { display: none; }
  .tool { padding: 0 .45rem; }
  .modes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .modes { gap: .2rem 1.1rem; }
  .passage .f-book { flex-basis: 10rem; }
  .passage .f-num { flex: 1 1 4.6rem; max-width: 6.5rem; }
  .passage .f-ver { flex-basis: 11rem; }
  .seek button { flex: 1 1 100%; }
  .page, .reading { padding-top: 1.5rem; }
  .page h1 { font-size: 2rem; }
  .chapter-num { font-size: 3.8rem; }
  .passage-ref { font-size: 2.4rem; }
  .vs { padding-left: 2.2em; margin-left: -.35em; margin-right: -.35em; padding-right: .35em; }
  .vn { width: 2.9em; padding-right: .55em; }
}

@media (max-width: 380px) {
  .top-in { padding: .55rem .75rem; gap: .4rem; }
  .brand { font-size: 1.1rem; gap: .4rem; }
  .brand img { width: 24px; height: 24px; }
  .tools { gap: 0; }
  .tool { padding: 0 .35rem; min-height: 2.4rem; }
  .langs { margin: 0 .1rem; }
  .langs a { padding: .3rem .38rem; }
  .pager { font-size: 1.02rem; }
  .selbtns button { padding: 0 .6rem; }
  .selbtns { gap: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .top, .foot, .selbar, .toast, .hint, .pager { display: none !important; }
  .reading { max-width: none; padding: 0; }
}

/* Assinatura no rodapé */
.powered { margin-top: 1rem !important; font-size: .78rem; letter-spacing: .04em; }
.powered a { color: var(--ink); font-weight: 600; text-decoration-color: var(--ochre); }

/* Marca WeBíblia */
.brand { font-weight: 500; letter-spacing: 0; }
.wm i { font-style: italic; color: var(--brand); margin-right: .02em; }
.copy { margin-top: 1rem !important; }
.copy + .powered { margin-top: .25rem !important; }
.meaning { font-family: var(--serif-display); font-style: italic; font-size: .98rem; color: var(--ink); margin-bottom: .6rem !important; }
@media (max-width: 380px) { .wm-sub { font-size: .55rem; letter-spacing: .1em; } }

/* Cabeçalho do versículo do dia com a data e hora do visitante */
.daily-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1.5rem; }
.clock {
  margin: 0; font-family: var(--sans); font-size: .85rem; color: var(--ink);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem;
  font-variant-numeric: tabular-nums;
}
.clock time { font-weight: 500; }
.clock .hm { font-weight: 600; letter-spacing: .02em; }
.clock .tz { font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.clock .tz::before { content: ""; display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--ochre); margin-right: .4rem; vertical-align: .08em; }
@media (max-width: 640px) { .daily-head { flex-direction: column; align-items: flex-start; } }

/* Botões do versículo do dia */
.daily-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; margin: 1rem 0 0; font-family: var(--sans); font-size: .92rem; }
.another {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: 0 1rem;
  border: 1px solid var(--ink); border-radius: 4px; text-decoration: none; color: var(--ink); background: var(--paper);
}
.another:hover { background: var(--ink); color: var(--paper); }
.another svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.another[aria-busy="true"] svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.back-daily {
  font: inherit; background: none; border: 0; padding: .4rem 0; cursor: pointer; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: .2em;
}
.back-daily[hidden] { display: none; }
.daily blockquote p { transition: opacity .2s ease; }

/* Índice dos livros colapsável */
.bible-index { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: .5rem; }
.bible-index > summary, .testament-block > summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: .8rem;
  -webkit-tap-highlight-color: transparent;
}
.bible-index > summary::-webkit-details-marker, .testament-block > summary::-webkit-details-marker { display: none; }
.bible-index > summary { padding: 1rem 0; }
.bible-index > summary .index-title { margin: 0; font-family: var(--serif-display); font-weight: 500; font-size: 1.6rem; }
.bible-index > summary::after, .testament-block > summary::after {
  content: ""; margin-left: auto; width: .55rem; height: .55rem; flex: none; align-self: center;
  margin-right: .45rem; position: relative; top: -.15rem;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.bible-index[open] > summary::after, .testament-block[open] > summary::after { transform: rotate(-135deg); top: .1rem; }
.bible-index .count { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.testament-block { border-top: 1px dotted var(--rule-strong); }
.testament-block > summary { padding: .8rem 0; }
.testament-block > summary .testament { margin: 0; }
.testament-block .books { padding-bottom: 1.2rem; }
.bible-index summary:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.clock[hidden] { display: none; }

/* ---------- Receber notificação ---------- */
.home-notify { margin: 0 0 2.6rem; padding: 1.4rem 0 0; border-top: 2px solid var(--ochre); }
.notify-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-top: 1rem; max-width: 44rem; }
.notify-form .f-email { flex: 1 1 16rem; }
.notify-form input[type="email"] {
  font: inherit; font-family: var(--sans); font-size: 1rem; color: var(--ink); width: 100%;
  min-height: 3rem; padding: .5rem .75rem; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--field);
}
.notify-form button, .notify-confirm button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: 0 1.2rem; cursor: pointer;
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 4px;
}
.notify-form button:hover, .notify-confirm button.primary:hover { background: var(--ochre); border-color: var(--ochre); }
.notify-form button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notify-privacy { flex-basis: 100%; margin: .1rem 0 0; font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.notify-confirm { margin-top: 1.4rem; }
.notify-confirm button.secondary { background: var(--paper); color: var(--ink); }
.notify-confirm button.secondary:hover { background: var(--tint); }
.notify-page { max-width: var(--read); }
.notice-line { border-left: 3px solid var(--ochre); padding: .3rem 0 .3rem .8rem; font-family: var(--sans); font-size: .95rem; margin: 1rem 0 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot-notify { margin: .9rem auto .2rem !important; }
.foot-notify a { color: var(--ink); font-weight: 600; text-decoration-color: var(--ochre); }
.tool-notify svg { stroke-width: 1.7; }
@media (max-width: 640px) { .notify-form button { flex: 1 1 100%; justify-content: center; } }
@media (max-width: 400px) { .tool-notify { display: none; } }
