/* Organic content pages (tools/build-content-pages.mjs): the Bible trivia
   questions page and the trivia-night guide. They reuse the support page
   shell (.support-main, .support-hero, .faq-section) and the home's Reto
   quiz (.reto-quiz, graded by site.js); this file only adds their own blocks. */

.content-main {
  max-width: 980px;
}

.content-note {
  font-size: 0.98rem !important;
}

.content-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.content-toc a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 8px 14px;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.content-toc a:hover {
  border-color: var(--olive);
}

/* The quiz band: the home's dark Reto background, cards in a grid. */
.content-quiz-band {
  margin: 0 0 48px;
  border-radius: 8px;
  padding: 32px 24px;
  scroll-margin-top: 96px;
}

.content-quiz-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.content-quiz-heading h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.content-quiz-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.content-quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: start;
}

/* Questions here are longer than the home's, so the frame grows with them. */
.content-quiz-grid .reto-frame {
  aspect-ratio: auto;
  min-height: 112px;
  padding: 22px 9%;
  font-size: 1.04rem;
}

/* Question lists by topic */
.trivia-section,
.content-panel,
.content-steps-section,
.content-tips {
  margin: 0 0 48px;
  scroll-margin-top: 96px;
}

.trivia-section h2,
.content-panel h2,
.content-steps-section h2,
.content-tips h2,
.content-cta h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.1;
}

.trivia-lead {
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.trivia-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.trivia-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 12px 32px rgba(31, 26, 12, 0.06);
  padding: 18px 20px;
  scroll-margin-top: 96px;
}

.trivia-item h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.4;
}

.trivia-meta {
  margin: -4px 0 10px;
}

/* Difficulty pill on every question (trivia list and quiz cards). */
.trivia-level {
  display: inline-block;
  padding: 1px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--olive-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.6;
  vertical-align: middle;
}

.trivia-level-medium,
.trivia-level-hard {
  border-color: var(--olive-dark);
}

.trivia-level-hard {
  background: var(--olive-dark);
  color: var(--paper-strong);
}

.trivia-options {
  margin: 0 0 10px;
  padding-left: 26px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.trivia-answer summary {
  display: inline-flex;
  cursor: pointer;
  color: var(--olive-dark);
  font-weight: 900;
  list-style: none;
}

.trivia-answer summary::-webkit-details-marker {
  display: none;
}

.trivia-answer summary::after {
  content: " +";
  white-space: pre;
}

.trivia-answer[open] summary::after {
  content: " −";
}

.trivia-answer p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.trivia-answer strong {
  color: var(--ink);
}

.trivia-ref {
  display: block;
  margin-top: 4px;
  color: var(--olive-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

/* Guide */
.content-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 22px;
}

.content-checklist {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.content-steps {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.content-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 18px 20px 18px 72px;
  counter-increment: step;
  scroll-margin-top: 96px;
}

.content-step::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--gold-light);
  font-weight: 900;
}

.content-step h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.1rem;
}

.content-step p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.content-step a,
.content-cta p a,
.faq-item a {
  color: var(--blue);
  font-weight: 800;
}

.content-tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 16px;
}

.content-main .faq-section {
  margin-bottom: 48px;
  scroll-margin-top: 96px;
}

.content-cta {
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(13, 18, 35, 0.96), rgba(18, 33, 74, 0.9));
  color: #fff;
  padding: 28px 24px;
}

.content-cta h2 {
  color: #fff;
}

.content-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.content-cta .support-actions .primary-cta {
  background: linear-gradient(#f3cd58, #dca629);
  color: #2a1c04;
}

@media (max-width: 640px) {
  .content-quiz-band {
    margin-left: -8px;
    margin-right: -8px;
    padding: 24px 14px;
  }

  .content-step {
    padding: 64px 16px 16px;
  }

  .content-step::before {
    left: 16px;
    top: 16px;
  }
}
