/* 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;
}
