/* Lone Trumpet - Bible section styles. Layered on top of /assets/css/style.css */

.bible-main { padding: 2rem 0 4rem; }
.bible-wrap { max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Landing page --------------------------------------------------- */
.bible-hero { text-align: center; margin-bottom: 2rem; }
.bible-hero h1 { margin: 0 0 .35rem; }
.bible-hero .tagline { margin: 0; color: var(--ink-soft); }

.bible-tools {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 2rem 0;
}
.bible-tool {
  display: block; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1rem;
  box-shadow: var(--shadow);
  color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.bible-tool:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
  color: var(--ink);
}
.bible-tool .ico {
  font-size: 1.8rem; color: var(--gold);
  display: block; margin-bottom: .35rem;
}
.bible-tool h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.bible-tool p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ---- Book index ----------------------------------------------------- */
.book-grid {
  display: grid; gap: .35rem .8rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin: 1rem 0 2rem;
}
.book-grid a {
  padding: .45rem .65rem;
  border-radius: 4px;
  font-size: .96rem;
  color: var(--ink);
}
.book-grid a:hover { background: var(--gold-pale); color: var(--ink); }
.book-section h3 {
  font-family: var(--serif); color: var(--gold-deep);
  margin: 2rem 0 .5rem; padding-bottom: .25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem; letter-spacing: 2px; text-transform: uppercase;
}

/* ---- Chapter reader ------------------------------------------------- */
.chapter-head { text-align: center; margin-bottom: 1.5rem; }
.chapter-head h1 { margin: 0 0 .25rem; }
.chapter-head .meta { color: var(--ink-soft); font-family: var(--serif); }

.chapter-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin: 1.2rem 0; gap: 1rem; flex-wrap: wrap;
}
.chapter-nav .nav-link {
  padding: .4rem .9rem; border: 1px solid var(--line);
  border-radius: 4px; background: var(--card); color: var(--ink-soft);
  font-size: .92rem;
}
.chapter-nav .nav-link:hover { border-color: var(--gold); color: var(--ink); }
.chapter-nav .nav-link.disabled { opacity: .35; pointer-events: none; }
.chapter-nav .chapter-select {
  font-family: var(--serif); font-size: 1rem;
  background: var(--card); border: 1px solid var(--line);
  padding: .35rem .6rem; border-radius: 4px;
}

.scripture-text {
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.85;
  color: var(--ink);
}
.scripture-text .v {
  display: inline; margin-right: .25em;
}
.scripture-text .vn {
  font-family: var(--sans); font-size: .72em;
  color: var(--gold-deep); vertical-align: super;
  margin-right: .3em; font-weight: 600;
}
.scripture-text i {
  color: var(--ink-soft);
}

/* ---- Search --------------------------------------------------------- */
.search-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.5rem;
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.search-form input[type="search"] {
  flex: 1 1 250px; min-width: 200px;
  padding: .55rem .8rem; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--ink); font-family: var(--sans);
}
.search-form select {
  padding: .55rem .6rem; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--ink); font-family: var(--sans);
}
.search-form button {
  padding: .55rem 1.4rem; font-size: 1rem;
  background: var(--gold); color: #fff; border: 0;
  border-radius: 4px; font-family: var(--sans); font-weight: 600;
  cursor: pointer;
}
.search-form button:hover { background: var(--gold-deep); }
.search-meta { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1rem; }

.search-result {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: .9rem 1.2rem; margin-bottom: .8rem;
  border-radius: var(--radius);
}
.search-result a.ref {
  font-family: var(--serif); font-weight: 600;
  color: var(--gold-deep); font-size: .95rem;
  text-decoration: none;
}
.search-result a.ref:hover { color: var(--ink); }
.search-result .txt {
  font-family: var(--serif); font-size: 1.05rem;
  margin: .3rem 0 0; line-height: 1.55;
}
.search-result mark {
  background: var(--gold-pale); color: var(--ink);
  padding: 0 .1em; border-radius: 2px;
}

.search-pager {
  display: flex; justify-content: center; gap: .8rem;
  margin-top: 1.5rem;
}

/* ---- Reading plans -------------------------------------------------- */
.plan-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
  margin-bottom: 1rem; box-shadow: var(--shadow);
}
.plan-card h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
.plan-card .plan-meta {
  font-family: var(--sans); font-size: .82rem;
  color: var(--ink-soft); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: .6rem;
}
.plan-card p { margin: 0 0 1rem; color: var(--ink-soft); }
.plan-card .plan-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.plan-options {
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 1rem 1.2rem; border-radius: var(--radius);
  margin: 1.5rem 0;
}
.plan-options label { font-family: var(--serif); margin-right: .8rem; }
.plan-options input[type="date"] {
  padding: .35rem .5rem; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--card); font-family: var(--sans);
}

/* ---- Printable schedule (print stylesheet) -------------------------- */
.schedule-print {
  max-width: 760px; margin: 0 auto; padding: 1.5rem 1.25rem;
}
.schedule-print h1 { text-align: center; }
.schedule-print .meta {
  text-align: center; color: var(--ink-soft);
  font-family: var(--serif); font-style: italic;
  margin-bottom: 1.5rem;
}
.schedule-print table { width: 100%; border-collapse: collapse; }
.schedule-print th, .schedule-print td {
  padding: .45rem .7rem; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.schedule-print th {
  font-family: var(--serif); font-size: .92rem;
  background: var(--bg-soft);
}
.schedule-print .day-no { width: 60px; color: var(--ink-soft); }
.schedule-print .day-date { width: 130px; font-family: var(--serif); }
.schedule-print .day-readings { font-family: var(--serif); }
.schedule-print .checkbox {
  display: inline-block; width: 14px; height: 14px;
  border: 1px solid var(--ink); margin-right: .5rem;
  vertical-align: middle;
}

@media print {
  .site-header, .site-footer, .print-hide { display: none !important; }
  body { background: #fff; }
  .schedule-print { padding: 0; }
  .schedule-print table { font-size: 10pt; }
}

/* ---- Quiz ----------------------------------------------------------- */
.quiz-wrap { max-width: 720px; }
.quiz-header { text-align: center; margin-bottom: 1.6rem; }
.quiz-header h1 { margin: 0 0 .35rem; }
.quiz-tagline {
  margin: 0; color: var(--ink-soft);
  font-family: var(--serif); font-style: italic;
}

.quiz-progress { margin-bottom: 1.2rem; }
.quiz-progress-bar {
  height: 6px; background: var(--bg-soft); border-radius: 3px;
  overflow: hidden; border: 1px solid var(--line);
}
.quiz-progress-fill {
  height: 100%; background: var(--gold); width: 0;
  transition: width .4s ease;
}
.quiz-stats {
  display: flex; justify-content: center; gap: 2.5rem;
  font-family: var(--sans); font-size: .85rem;
  color: var(--ink-soft); margin-top: .6rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  flex-wrap: wrap;
}
.quiz-stats strong { color: var(--ink); font-weight: 600; }

.quiz-card {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 2.5rem 2.4rem;
  box-shadow: var(--shadow-lg);
}
.quiz-verse {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  line-height: 1.55;
  color: var(--ink); text-align: center;
  margin: 0 0 2.2rem; padding: 0;
  border: 0; background: none;
}

.quiz-choices {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
  margin: 0 auto 1.2rem;
  justify-items: center;
  max-width: 100%;
}
@media (min-width: 680px) {
  .quiz-choices { grid-template-columns: 1fr 1fr 1fr; }
  .quiz-choice { width: 100%; }
}
.quiz-choice {
  width: 100%;
  max-width: 360px;
  padding: 1.9rem 1.5rem;
  min-height: 5.5rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  background: var(--bg);
  color: var(--ink); border: 2px solid var(--line);
  border-radius: 8px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  text-align: center; line-height: 1.2;
  box-shadow: 0 3px 0 var(--line);
}
.quiz-choice:hover:not(:disabled) {
  background: var(--gold-pale); border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--gold-deep);
}
.quiz-choice:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 0 var(--gold-deep);
}
.quiz-choice:disabled { cursor: not-allowed; }
.quiz-choice.correct {
  background: #e7f1de; border-color: #5a8a44;
  color: #28401b; font-weight: 600;
  box-shadow: 0 3px 0 #5a8a44;
}
.quiz-choice.wrong {
  background: #fbe3d8; border-color: #a4400a;
  color: #4a1a08;
  box-shadow: 0 3px 0 #a4400a;
}

.quiz-feedback {
  padding: 1rem 1.2rem; border-radius: var(--radius);
  margin: 1.2rem auto; font-family: var(--serif);
  font-size: 1.05rem; line-height: 1.5;
  text-align: center; max-width: 560px;
}
.quiz-feedback.correct {
  background: #e7f1de; border: 1px solid #a7c69a;
  border-left: 4px solid #5a8a44; color: #28401b;
}
.quiz-feedback.wrong {
  background: #fbe3d8; border: 1px solid #d99a7a;
  border-left: 4px solid #a4400a; color: #4a1a08;
}
.quiz-feedback .ref-link {
  font-family: var(--sans); font-size: .85rem;
  font-style: normal; color: var(--gold-deep);
  margin-left: .3rem;
}

.quiz-cta {
  text-align: center;
  margin: 0 0 2rem;
}
.quiz-start-btn {
  font-family: var(--serif);
  font-size: 1.15rem;
  padding: .9rem 2.4rem;
  letter-spacing: .5px;
  background: var(--gold);
  color: #fff;
  border: 2px solid var(--gold-deep);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--gold-deep);
  transition: transform .1s, box-shadow .15s, background .15s;
}
.quiz-start-btn:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--gold-deep);
}
.quiz-start-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 var(--gold-deep);
}
.quiz-start-btn.is-restart {
  font-size: .92rem;
  padding: .55rem 1.4rem;
  background: var(--card);
  color: var(--ink-soft);
  border-color: var(--line);
  box-shadow: 0 2px 0 var(--line);
  opacity: .85;
}
.quiz-start-btn.is-restart:hover {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--gold);
  opacity: 1;
  box-shadow: 0 3px 0 var(--gold);
}

.quiz-instructions {
  max-width: 600px; margin: 0 auto 1rem;
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
}
.quiz-instructions h2 {
  font-family: var(--serif);
  text-align: center;
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: 1.4rem;
}
.quiz-instructions ul {
  margin: 0 0 1.4rem 1.4rem;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
}
.quiz-instructions li {
  margin-bottom: .6rem;
}
.quiz-instructions-note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
  text-align: center;
  font-size: .95rem;
  line-height: 1.5;
}

.quiz-end {
  text-align: center; max-width: 560px; margin: 1rem auto 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}
.quiz-end h2 { margin: 0 0 .8rem; }
.final-score {
  font-family: var(--serif); font-size: 1.5rem;
  margin: 1.2rem 0 .5rem; color: var(--ink-soft);
}
.final-score strong {
  color: var(--gold-deep); font-size: 2.6rem;
  display: block; line-height: 1; margin-bottom: .25rem;
}
.final-feedback {
  font-family: var(--serif); font-style: italic;
  color: var(--ink); margin: 1.2rem auto 1.5rem;
  max-width: 460px; line-height: 1.5;
}
.quiz-end-actions {
  display: flex; gap: .8rem; justify-content: center;
  flex-wrap: wrap; margin-top: 1.5rem;
}

/* ---- Book intro (one line under the chapter heading) ----------------- */
.book-intro {
  margin: .6rem auto 0; max-width: 620px;
  font-family: var(--serif); font-style: italic;
  font-size: 1.02rem; color: var(--ink-soft);
}

/* ---- "Cited on Lone Trumpet" block ----------------------------------- */
.chapter-citations {
  margin: 2.5rem 0 0;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}
.chapter-citations h2 {
  margin: 0 0 .15rem; font-size: 1.15rem;
  font-family: var(--serif); color: var(--gold-deep);
}
.chapter-citations .cc-sub {
  margin: 0 0 .7rem; font-size: .9rem; color: var(--ink-soft);
}
.chapter-citations ul { margin: 0; padding: 0; list-style: none; }
.chapter-citations li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.chapter-citations li:last-child { border-bottom: 0; }
.chapter-citations .cc-type {
  margin-left: .5rem; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .5px; color: var(--gold-deep);
  background: var(--gold-pale); border-radius: 3px; padding: .1rem .4rem;
}

/* ---- Chapter grid (crawlable links to every chapter) ------------------ */
.chapter-grid { margin: 2rem 0 0; }
.chapter-grid .cg-title {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--ink-soft); margin: 0 0 .6rem;
}
.chapter-grid .cg-cells {
  display: flex; flex-wrap: wrap; gap: .3rem;
}
.chapter-grid .cg-cell {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2rem; padding: .35rem .3rem;
  border: 1px solid var(--line); border-radius: 4px;
  font-size: .9rem; color: var(--ink);
  background: var(--card);
}
.chapter-grid a.cg-cell:hover { border-color: var(--gold); background: var(--gold-pale); }
.chapter-grid .cg-cell.is-current {
  background: var(--gold); border-color: var(--gold);
  color: #fff; font-weight: 600;
}

/* ---- Verse deep links (#vN anchors) ----------------------------------- */
.scripture-text .v { scroll-margin-top: 90px; }
.scripture-text .v:target {
  background: var(--gold-pale);
  border-radius: 3px;
  box-shadow: 0 0 0 4px var(--gold-pale);
}

/* ---- Book summaries on the landing page ------------------------------- */
.book-summaries { margin-top: 3rem; }
.book-summaries h2 {
  font-family: var(--serif); text-align: center; margin-bottom: .3rem;
}
.book-summaries .bs-lede {
  text-align: center; color: var(--ink-soft); margin: 0 0 1.5rem;
}
.book-summaries h3 {
  font-family: var(--serif); color: var(--gold-deep);
  margin: 1.6rem 0 .6rem;
}
.book-summaries dl { margin: 0; }
.book-summaries dt {
  margin-top: .65rem; font-weight: 600;
}
.book-summaries dt a { color: var(--ink); }
.book-summaries dt a:hover { color: var(--gold-deep); }
.book-summaries .bs-chapters {
  margin-left: .45rem; font-weight: 400; font-size: .78rem;
  color: var(--ink-soft); text-transform: uppercase; letter-spacing: .4px;
}
.book-summaries dd {
  margin: .1rem 0 0; color: var(--ink-soft);
  font-family: var(--serif); font-size: .98rem;
}

/* ---- Statistics page --------------------------------------------------- */
.stats-cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 1.5rem 0 2rem;
}
.stats-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center; padding: 1.1rem .6rem;
}
.stats-card .sc-num {
  display: block; font-family: var(--serif);
  font-size: 1.9rem; color: var(--gold-deep); font-weight: 600;
}
.stats-card .sc-label {
  display: block; font-size: .78rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-soft); margin-top: .2rem;
}
.stats-records ul { padding-left: 1.2rem; }
.stats-records li { margin: .45rem 0; }
.stats-table {
  width: 100%; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--line);
  font-size: .95rem; margin: .8rem 0 1.6rem;
}
.stats-table th, .stats-table td {
  text-align: left; padding: .45rem .8rem;
  border-bottom: 1px solid var(--line);
}
.stats-table th {
  font-family: var(--serif); background: var(--bg-soft);
}
.stats-table td:not(:first-child), .stats-table th:not(:first-child) {
  text-align: right;
}

/* ---- Topical verse pages (/bible/topics/) ---- */
.topic-group { margin: 1.6rem 0; }
.topic-group h2, .topic-related h2 {
  font-family: var(--serif); color: var(--navy);
  border-bottom: 1px solid var(--line); padding-bottom: .35rem;
}
.topic-list {
  list-style: none; padding: 0; margin: .8rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .35rem .9rem;
}
.topic-list a { text-decoration: none; }
.topic-list a:hover { text-decoration: underline; }
.topic-passage { margin: 1.7rem 0; }
.topic-passage .passage-ref {
  font-family: var(--serif); font-size: 1.15rem; margin: 0 0 .4rem;
}
.topic-passage .passage-ref a { color: var(--gold-deep); text-decoration: none; }
.topic-passage .passage-ref a:hover { text-decoration: underline; }
.passage-text {
  margin: 0; padding: .9rem 1.2rem;
  background: var(--card); border-left: 3px solid var(--gold-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  font-family: var(--serif); font-size: 1.08rem; line-height: 1.75;
}
.passage-text .vnum {
  font-family: var(--sans); font-size: .68rem; vertical-align: super;
  color: var(--ink-soft); margin-right: .1rem;
}
.topic-related { margin: 2.4rem 0 0; }
.topic-tools {
  margin: 2.2rem 0 1rem; padding: 1rem 1.3rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: .95rem; color: var(--ink-soft);
}

/* Topical depth: the original-language word behind a passage, and where it points.
   Quiet by design - it sits under the scripture, never competing with it. */
.passage-depth {
  margin: .85rem 0 0;
  padding: .75rem .9rem;
  border-left: 3px solid var(--gold, #b8933f);
  background: rgba(184, 147, 63, .06);
  border-radius: 0 4px 4px 0;
  font-size: .92rem;
  line-height: 1.55;
}
.passage-depth p { margin: 0 0 .45rem; }
.passage-depth p:last-child { margin-bottom: 0; }
.depth-label {
  font-variant: small-caps;
  letter-spacing: .04em;
  opacity: .75;
  margin-right: .25rem;
}
.passage-depth .orig {
  font-size: 1.12rem;
  font-weight: 600;
  margin-right: .3rem;
}
.passage-depth em { opacity: .85; margin-right: .35rem; }
.passage-depth .strongs-ref {
  font-size: .82rem;
  padding: .05rem .35rem;
  border: 1px solid rgba(184, 147, 63, .45);
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}
.depth-xrefs a { white-space: nowrap; }
@media (max-width: 600px) {
  .passage-depth { font-size: .88rem; padding: .6rem .7rem; }
}
