/* ============================================================
   apol-pages.css — shared styles for apol-*.html sub-pages
   Used by:
     apol-new-atheism.html
     apol-ehrman.html
     apol-islam.html
     apol-hinduism.html
     apol-buddhism.html
     apol-spiritual-but-not-religious.html
     apol-science.html
     apol-evil.html
     apol-moral.html
     apol-ai.html
     apol-cults.html
     apol-judaism.html
     apol-internet.html
     apol-positive-case.html
   ============================================================ */

/* ---- Section structure ---- */
.obj-section {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}
.obj-section h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--ink, #2c1810);
  margin: 0 0 8px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 12px;
}
[data-theme="dark"] .obj-section h2 { color: var(--text, #e8d8a8); }
.obj-section h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  margin: 32px 0 12px;
  font-weight: 500;
}
.obj-section h4 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink, #2c1810);
  margin: 24px 0 10px;
  font-weight: 600;
}
[data-theme="dark"] .obj-section h4 { color: var(--text, #e8d8a8); }
.obj-section p {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 0 0 16px;
}
.obj-section ul,
.obj-section ol {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 0 0 16px;
  padding-left: 26px;
}
.obj-section li { margin-bottom: 8px; }

/* ---- The objection block (crimson, what the opponent says) ---- */
.objection-block {
  margin: 24px 0;
  padding: 20px 28px;
  background: rgba(232, 220, 192, 0.45);
  border-left: 4px solid #8b1a1a;
  border-radius: 0 8px 8px 0;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2a0d0d;
}
[data-theme="dark"] .objection-block {
  background: rgba(120, 24, 24, 0.15);
  color: #f0d8d4;
}
.objection-block .obj-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: #8b1a1a;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
[data-theme="dark"] .objection-block .obj-label { color: #e08585; }

/* ---- The answer block (forest green, the Christian response) ---- */
.answer-block {
  margin: 24px 0;
  padding: 20px 28px;
  background: rgba(225, 240, 235, 0.55);
  border-left: 4px solid #1d5a4a;
  border-radius: 0 8px 8px 0;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #0d2c24;
}
[data-theme="dark"] .answer-block {
  background: rgba(20, 70, 58, 0.18);
  color: #d0e8e0;
}
.answer-block .ans-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: #1d5a4a;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
[data-theme="dark"] .answer-block .ans-label { color: #7fc8af; }

/* ---- Pull-quote from a source ---- */
.quote-pull {
  margin: 22px 0;
  padding: 16px 26px;
  background: rgba(244, 234, 213, 0.55);
  border-left: 3px solid var(--gold-deep);
  border-radius: 0 8px 8px 0;
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--ink, #2c1810);
}
[data-theme="dark"] .quote-pull {
  background: rgba(184, 134, 11, 0.1);
  color: var(--text, #e8d8a8);
}
.quote-pull .quote-source {
  display: block;
  text-align: right;
  font-style: normal;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  margin-top: 10px;
  text-transform: uppercase;
}

/* ---- Page table of contents ---- */
.obj-toc {
  margin: 30px 0 50px;
  padding: 26px 28px;
  background: rgba(255, 250, 235, 0.55);
  border: 1px dashed rgba(184, 134, 11, 0.4);
  border-radius: 12px;
}
[data-theme="dark"] .obj-toc { background: rgba(184, 134, 11, 0.08); }
.obj-toc-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  margin: 0 0 18px;
  font-weight: 600;
}

/* Card-grid layout — each section TOC entry renders as a clickable box. */
.obj-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.obj-toc li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.obj-toc a {
  font-family: 'EB Garamond', serif;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink, #2c1810);
  text-decoration: none;
  display: block;
  padding: 10px 28px 10px 14px;
  position: relative;
  border-radius: 6px;
  background: rgba(255, 252, 244, 0.85);
  border: 1px solid rgba(184, 134, 11, 0.28);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
[data-theme="dark"] .obj-toc a {
  color: var(--text, #e8d8a8);
  background: rgba(184, 134, 11, 0.07);
  border-color: rgba(184, 134, 11, 0.3);
}
.obj-toc a::after {
  content: '→';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 0.95rem;
  opacity: 0.55;
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.obj-toc a:hover {
  color: var(--crimson) !important;
  background: rgba(255, 250, 235, 0.95);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(184, 134, 11, 0.12);
}
[data-theme="dark"] .obj-toc a:hover {
  background: rgba(184, 134, 11, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.obj-toc a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
  color: var(--crimson);
}
.obj-toc a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---- The pivot-to-Christ block (closing each page) ---- */
.pivot-block {
  margin: 36px 0 24px;
  padding: 26px 34px;
  background: linear-gradient(135deg, rgba(244, 234, 213, 0.7), rgba(232, 220, 192, 0.7));
  border: 1px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(184, 134, 11, 0.08);
  position: relative;
}
[data-theme="dark"] .pivot-block { background: rgba(184, 134, 11, 0.08); box-shadow: none; }
.pivot-block::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 6px;
  pointer-events: none;
}
.pivot-block h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
  text-align: center;
  font-weight: 600;
}
.pivot-block p {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 0 0 12px;
}
.pivot-block p:last-child { margin-bottom: 0; }

/* ---- Bibliography ---- */
.biblio {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  line-height: 1.6;
  list-style: none;
  padding: 0;
}
.biblio li {
  margin: 0 0 12px;
  padding-left: 20px;
  text-indent: -20px;
}
.biblio .bib-cat {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-indent: 0;
  padding-left: 0;
  margin: 22px 0 8px;
  list-style: none;
  font-weight: 600;
}

/* ---- Next-page card ----
   Two markup forms in the wild:
     (a) <a class="next-page-card"> with .next-page-title/.next-page-desc divs
     (b) <div class="next-page-card"> with one inner <a>
   The card itself must be a block either way. */
.next-page-card {
  display: block;
  margin: 50px 0 30px;
  padding: 26px 34px;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.10), rgba(184, 134, 11, 0.03));
  border: 1px solid rgba(184, 134, 11, 0.45);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
[data-theme="dark"] .next-page-card {
  background: rgba(184, 134, 11, 0.08);
  border-color: rgba(184, 134, 11, 0.35);
}
a.next-page-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(184, 134, 11, 0.18);
}
[data-theme="dark"] a.next-page-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.next-page-card .next-page-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.next-page-card .next-page-title {
  font-family: 'Cinzel', serif;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--ink, #2c1810);
  margin-bottom: 6px;
}
[data-theme="dark"] .next-page-card .next-page-title { color: var(--text, #e8d8a8); }
a.next-page-card:hover .next-page-title { color: var(--crimson); }
.next-page-card .next-page-desc {
  font-family: 'EB Garamond', serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-muted, #6a5a42);
}
/* legacy form (b): single inner link */
.next-page-card > a {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--ink, #2c1810);
  text-decoration: none;
}
[data-theme="dark"] .next-page-card > a { color: var(--text, #e8d8a8); }
.next-page-card > a:hover { color: var(--crimson); }

/* ============================================================
   Q&A entries (used in apol-new-atheism.html "Top 30 Objections")
   ============================================================ */
.qa-entry {
  margin: 60px 0;
  scroll-margin-top: 80px;
}
.qa-entry-num {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.qa-entry-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink, #2c1810);
  line-height: 1.3;
  margin: 0 0 8px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 14px;
}
[data-theme="dark"] .qa-entry-q { color: var(--text, #e8d8a8); }
.qa-part { margin: 22px 0; }
.qa-part-label {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.20em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 600;
  border-bottom: 1px dotted rgba(184, 134, 11, 0.3);
  padding-bottom: 6px;
}
.qa-part p {
  font-family: 'EB Garamond', serif;
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0 0 14px;
}
.qa-part ul, .qa-part ol {
  font-family: 'EB Garamond', serif;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 14px;
  padding-left: 26px;
}
.qa-part li { margin-bottom: 8px; }

.qa-variants {
  background: rgba(232, 220, 192, 0.4);
  border-left: 3px solid #8b1a1a;
  border-radius: 0 8px 8px 0;
  padding: 14px 22px;
  margin: 0 0 14px;
  font-family: 'EB Garamond', serif;
  font-size: 1.0rem;
  font-style: italic;
  color: #2a0d0d;
}
[data-theme="dark"] .qa-variants {
  background: rgba(120, 24, 24, 0.13);
  color: #f0d8d4;
}
.qa-variants p { margin: 4px 0; font-family: 'EB Garamond', serif; font-size: 1.0rem; }
.qa-variants .variant-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #8b1a1a;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 600;
  margin-right: 8px;
  min-width: 78px;
}
[data-theme="dark"] .qa-variants .variant-tag { color: #e08585; }

.qa-short {
  background: linear-gradient(135deg, rgba(244, 234, 213, 0.85), rgba(232, 220, 192, 0.85));
  border: 1px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.07);
  padding: 18px 26px;
  margin: 0 0 14px;
  font-family: 'EB Garamond', serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink, #2c1810);
}
[data-theme="dark"] .qa-short {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.18), rgba(120, 90, 30, 0.18));
  color: var(--text, #e8d8a8);
}

.qa-gotcha {
  background: rgba(255, 240, 232, 0.7);
  border-left: 4px solid #8b1a1a;
  border-radius: 0 8px 8px 0;
  padding: 14px 22px;
  margin: 0 0 14px;
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2a0d0d;
  font-style: italic;
}
[data-theme="dark"] .qa-gotcha {
  background: rgba(120, 24, 24, 0.13);
  color: #f0d8d4;
}

.qa-not-to-say {
  background: rgba(252, 245, 220, 0.7);
  border-left: 4px solid #b8860b;
  border-radius: 0 8px 8px 0;
  padding: 14px 22px;
  margin: 0 0 14px;
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.7;
}
[data-theme="dark"] .qa-not-to-say { background: rgba(184, 134, 11, 0.13); }
.qa-not-to-say ul { margin: 0; padding-left: 22px; }

.qa-where-goes {
  background: rgba(225, 240, 235, 0.6);
  border-left: 4px solid #1d5a4a;
  border-radius: 0 8px 8px 0;
  padding: 14px 22px;
  margin: 0 0 14px;
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #0d2c24;
}
[data-theme="dark"] .qa-where-goes {
  background: rgba(20, 70, 58, 0.18);
  color: #d0e8e0;
}
.qa-sources {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  padding-left: 22px;
}

.top30-toc {
  margin: 30px 0 50px;
  padding: 28px 30px;
  background: rgba(255, 250, 235, 0.55);
  border: 1px dashed rgba(184, 134, 11, 0.4);
  border-radius: 12px;
}
[data-theme="dark"] .top30-toc { background: rgba(184, 134, 11, 0.08); }
.top30-toc-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  margin: 0 0 20px;
  font-weight: 600;
}

/* Card-grid layout — each Q renders as a clickable box.
   Category labels span the whole row, then their group of Q cards
   tiles below in a responsive grid. */
.top30-toc ol {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  line-height: 1.45;
  list-style: none;
  counter-reset: top30;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

/* Q cards */
.top30-toc ol li {
  counter-increment: top30;
  margin: 0;
  padding: 0;
  border: none;
  display: block;
  position: relative;
  border-radius: 6px;
  background: rgba(255, 252, 244, 0.85);
  border: 1px solid rgba(184, 134, 11, 0.28);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
[data-theme="dark"] .top30-toc ol li {
  background: rgba(184, 134, 11, 0.07);
  border-color: rgba(184, 134, 11, 0.3);
}
.top30-toc ol li:hover {
  background: rgba(255, 250, 235, 0.95);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(184, 134, 11, 0.12);
}
[data-theme="dark"] .top30-toc ol li:hover {
  background: rgba(184, 134, 11, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* The whole card is the click target — make the anchor fill it,
   render the leading numeral inside the card, and add a chevron
   so the box is unmistakably clickable. */
.top30-toc ol li a {
  display: block;
  padding: 12px 36px 12px 50px;
  color: var(--ink, #2c1810);
  text-decoration: none;
  position: relative;
  min-height: 100%;
}
[data-theme="dark"] .top30-toc ol li a { color: var(--text, #e8d8a8); }
.top30-toc ol li a:hover { color: var(--crimson); }
.top30-toc ol li a::before {
  content: counter(top30, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 12px;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  font-weight: 600;
}
.top30-toc ol li a::after {
  content: '→';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 0.95rem;
  opacity: 0.6;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.top30-toc ol li:hover a::after {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
  color: var(--crimson);
}

/* Done state — small green check inside the card, top-right */
.top30-toc ol li.done a {
  padding-right: 56px;
}
.top30-toc ol li.done a::after {
  content: '✓ →';
  color: #1d5a4a;
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.top30-toc ol li.done:hover a::after {
  color: var(--crimson);
  opacity: 1;
}

/* Pending state — muted card with "soon" tag */
.top30-toc ol li.pending {
  background: rgba(255, 250, 235, 0.35);
  border-style: dashed;
}
[data-theme="dark"] .top30-toc ol li.pending {
  background: rgba(184, 134, 11, 0.04);
}
.top30-toc ol li.pending a {
  color: var(--text-muted);
}
.top30-toc ol li.pending a::after {
  content: 'SOON';
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  font-weight: 600;
  opacity: 0.7;
}

/* Category headers — full-width band above each group of cards */
.top30-toc .toc-cat {
  grid-column: 1 / -1;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin: 14px 0 0;
  padding: 0 0 4px;
  font-weight: 600;
  list-style: none;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(184, 134, 11, 0.25) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  counter-increment: none;
}
.top30-toc .toc-cat:first-child { margin-top: 0; }
.top30-toc .toc-cat:hover {
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent transparent rgba(184, 134, 11, 0.25) transparent !important;
}
.top30-toc .toc-cat::before,
.top30-toc .toc-cat::after { display: none !important; content: none !important; }

/* =============================================================
   MOBILE RULES — added 2026-04-30
   Tighten padding and font sizes on Top 30 Q&A entries for narrow
   viewports. Desktop layout above 768px is preserved exactly.
   ============================================================= */

@media (max-width: 768px) {
  .qa-entry { margin: 40px 0; }
  .qa-entry-q {
    font-size: 1.2rem;
    line-height: 1.35;
    padding-bottom: 10px;
  }
  .qa-part { margin: 18px 0; }
  .qa-part p {
    font-size: 1rem;
    line-height: 1.65;
  }
  .qa-part ul, .qa-part ol {
    font-size: 1rem;
    padding-left: 20px;
  }
  .qa-variants {
    padding: 12px 14px;
    font-size: 0.94rem;
  }
  .qa-variants .variant-tag {
    display: inline-block;
    margin-bottom: 4px;
  }
  .qa-short, .qa-gotcha, .qa-where-goes, .qa-not-to-say {
    padding: 12px 16px;
    font-size: 0.97rem;
  }
  .qa-short p, .qa-gotcha p, .qa-where-goes p, .qa-not-to-say p {
    font-size: 0.97rem;
  }
  .qa-sources {
    font-size: 0.94rem;
  }
  .top30-toc {
    padding: 18px 16px;
    margin: 20px 0 30px;
  }
  .top30-toc ol {
    font-size: 0.95rem;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .top30-toc ol li a {
    padding: 10px 30px 10px 44px;
  }
  .top30-toc ol li a::before {
    left: 12px;
    top: 10px;
    font-size: 0.68rem;
  }
  .top30-toc ol li a::after {
    right: 10px;
    font-size: 0.85rem;
  }
  .top30-toc ol li.done a {
    padding-right: 48px;
  }
  .top30-toc .toc-cat {
    margin-top: 10px;
  }
  .obj-section { margin-bottom: 40px; }
  .obj-section h2 {
    font-size: 1.25rem;
    padding-bottom: 8px;
  }
  .obj-section h3 {
    font-size: 1rem;
    margin: 24px 0 8px;
  }
}

@media (max-width: 480px) {
  .qa-entry { margin: 32px 0; }
  .qa-entry-q { font-size: 1.1rem; }
  .qa-variants { padding: 10px 12px; font-size: 0.9rem; }
  .qa-short, .qa-gotcha, .qa-where-goes, .qa-not-to-say { padding: 10px 12px; font-size: 0.94rem; }
  .top30-toc { padding: 14px 12px; }
}
