/* ─── GOOGLE FONTS IMPORT for David's Eternal Lord article ─── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Cinzel:wght@400;600;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Noto+Serif:ital,wght@0,400;0,600;1,400&display=swap');

/* ─── GOOGLE FONTS IMPORT for The Glory Isaiah Saw / Christ in the Prophets series ─── */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Cormorant+SC:wght@400;500;600;700&family=Frank+Ruhl+Libre:wght@400;500;700&display=swap');

/* =================================================================
   LJCR Article — Christ in the Prophets series
   Locked aesthetic: parchment & burgundy, EB Garamond / Playfair /
   Cormorant SC / Frank Ruhl Libre.  Sub tutela Dei.
   All rules below are scoped to .ljcr-article and will only affect
   pages whose post body wraps content in that class.
   ================================================================= */

.ljcr-article {
  --parchment: #f5efe0;
  --parchment-dark: #ede4cd;
  --parchment-darker: #e3d7b8;
  --burgundy: #5a1f2a;
  --burgundy-dark: #3f1019;
  --burgundy-light: #8b3a47;
  --sepia: #8b6f47;
  --rule: #c9b894;
  --rule-fine: #d9cca8;

  font-family: 'EB Garamond', 'Adobe Caslon Pro', Garamond, Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.78;
  color: var(--burgundy);
  background: var(--parchment);
  max-width: 760px;
  margin: 2rem auto;
  padding: 3.5rem 2.4rem 3.5rem;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 18px rgba(63, 16, 25, 0.08);
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga", "kern", "onum";
}

.ljcr-article * { box-sizing: border-box; }

.ljcr-article p {
  margin: 0 0 1.4rem;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Title block */
.ljcr-article .title-block {
  text-align: center;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.ljcr-article h1.article-title {
  font-family: 'Playfair Display', 'Cormorant SC', Garamond, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--burgundy-dark);
  margin: 0 0 0.6rem;
}
.ljcr-article p.series-id {
  font-family: 'Cormorant SC', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy-light);
  margin: 0.8rem 0 0.4rem;
}
.ljcr-article p.subtitle {
  font-family: 'Playfair Display', Garamond, serif;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--burgundy);
  margin: 0;
  line-height: 1.4;
}

/* Section headings */
.ljcr-article h2 {
  font-family: 'Cormorant SC', 'Trajan Pro', serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--burgundy-dark);
  margin: 3.5rem 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}
.ljcr-article h2 .roman {
  display: inline-block;
  margin-right: 0.45em;
  color: var(--burgundy-light);
  font-style: italic;
  letter-spacing: 0.04em;
}
.ljcr-article h3 {
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--burgundy-dark);
  margin: 0 0 1.2rem;
  text-align: center;
  text-transform: uppercase;
}

/* Epigraph */
.ljcr-article .epigraph {
  text-align: center;
  font-style: italic;
  font-size: 1.22rem;
  margin: 2.2rem auto 2.6rem;
  padding: 1.8rem 2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--burgundy-dark);
  max-width: 580px;
}
.ljcr-article .epigraph p { margin: 0 0 0.8rem; line-height: 1.5; }
.ljcr-article .epigraph cite {
  display: block;
  font-style: normal;
  font-family: 'Cormorant SC', serif;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: var(--burgundy-light);
  text-transform: uppercase;
}

/* Drop cap on opening paragraph */
.ljcr-article p.drop-cap::first-letter {
  font-family: 'Playfair Display', Garamond, serif;
  font-size: 4.4rem;
  font-weight: 900;
  font-style: italic;
  float: left;
  line-height: 0.85;
  margin: 0.2em 0.14em 0 0;
  color: var(--burgundy-dark);
}

/* Block quotes — Scripture / Greek */
.ljcr-article blockquote.scripture {
  margin: 1.8rem 0;
  padding: 1.3rem 1.7rem;
  background: var(--parchment-dark);
  border-left: 3px solid var(--burgundy);
  font-style: italic;
  color: var(--burgundy-dark);
  border-radius: 0 2px 2px 0;
}
.ljcr-article blockquote.scripture p { margin: 0 0 0.6rem; }
.ljcr-article blockquote.scripture p:last-child { margin: 0; }
.ljcr-article blockquote.scripture .greek { font-style: normal; }
.ljcr-article blockquote.scripture cite {
  display: block;
  font-style: normal;
  font-family: 'Cormorant SC', serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--burgundy-light);
  margin-top: 0.7rem;
  text-transform: uppercase;
}

/* Greek and Hebrew */
.ljcr-article .greek, .ljcr-article [lang="el"] {
  font-family: 'EB Garamond', 'SBL Greek', 'Times New Roman', serif;
  font-style: normal;
  font-size: 1.04em;
}
.ljcr-article .hebrew, .ljcr-article [lang="he"] {
  font-family: 'Frank Ruhl Libre', 'SBL Hebrew', 'Times New Roman', serif;
  direction: rtl;
  unicode-bidi: embed;
  font-size: 1.14em;
  font-style: normal;
}
.ljcr-article .translit {
  font-style: italic;
  color: var(--burgundy-light);
}

/* Links */
.ljcr-article a {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.ljcr-article a:hover, .ljcr-article a:focus {
  color: var(--burgundy-dark);
  text-decoration-color: var(--burgundy);
}

/* Footnote markers in body */
.ljcr-article sup.fn-ref {
  font-size: 0.72em;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.05em;
}
.ljcr-article sup.fn-ref a {
  text-decoration: none;
  font-weight: 700;
  color: var(--burgundy);
  padding: 0.05em 0.2em;
  border-radius: 2px;
}
.ljcr-article sup.fn-ref a:hover { background: var(--parchment-darker); }

/* Bordered panels: TOC, Glossary, Footnotes */
.ljcr-article nav.toc,
.ljcr-article section.glossary,
.ljcr-article section.footnotes {
  margin: 3rem 0;
  padding: 1.9rem 2.1rem;
  background: var(--parchment-dark);
  border: 1px solid var(--rule);
  border-radius: 2px;
  position: relative;
  scroll-margin-top: 1rem;
}
.ljcr-article nav.toc::before,
.ljcr-article section.glossary::before,
.ljcr-article section.footnotes::before {
  content: "";
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 1px solid var(--rule-fine);
  pointer-events: none;
  border-radius: 1px;
}
.ljcr-article nav.toc h3,
.ljcr-article section.glossary h3,
.ljcr-article section.footnotes h3 { margin: 0 0 1.2rem; }

/* TOC */
.ljcr-article nav.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ljcr-article nav.toc li {
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--rule-fine);
}
.ljcr-article nav.toc li:last-child { border-bottom: none; }
.ljcr-article nav.toc a {
  display: block;
  text-decoration: none;
  color: var(--burgundy-dark);
  font-size: 1.04rem;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  transition: padding 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.ljcr-article nav.toc a:hover {
  color: var(--burgundy);
  background: var(--parchment);
  padding-left: 0.7rem;
}
.ljcr-article nav.toc .toc-roman {
  font-family: 'Cormorant SC', serif;
  font-style: italic;
  color: var(--burgundy-light);
  margin-right: 0.6em;
  letter-spacing: 0.06em;
  display: inline-block;
  min-width: 2.4em;
}
.ljcr-article nav.toc .toc-apparatus {
  margin-top: 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule-fine);
}

/* Glossary */
.ljcr-article section.glossary dl { margin: 0; }
.ljcr-article section.glossary dt {
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  color: var(--burgundy-dark);
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px dotted var(--rule-fine);
}
.ljcr-article section.glossary dt:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.ljcr-article section.glossary dt .greek {
  margin-right: 0.4em;
  font-size: 1.1em;
}
.ljcr-article section.glossary dt .gloss-translit {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.92em;
  letter-spacing: 0;
  color: var(--burgundy-light);
  margin-left: 0.3em;
}
.ljcr-article section.glossary dd {
  margin: 0.5rem 0 0;
  padding-left: 0;
  font-size: 0.99rem;
  line-height: 1.65;
}

/* Footnotes */
.ljcr-article section.footnotes ol {
  padding-left: 1.9rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.ljcr-article section.footnotes li {
  margin-bottom: 1rem;
  padding-left: 0.3rem;
  scroll-margin-top: 1rem;
}
.ljcr-article section.footnotes li:target {
  background: var(--parchment-darker);
  padding: 0.5rem 0.6rem;
  border-radius: 2px;
  transition: background 0.4s ease;
}
.ljcr-article section.footnotes a.fn-back {
  text-decoration: none;
  margin-left: 0.4em;
  color: var(--burgundy-light);
  font-size: 1.08em;
  font-weight: 700;
}
.ljcr-article section.footnotes a.fn-back:hover { color: var(--burgundy-dark); }

/* "↑ Contents" back-link */
.ljcr-article p.back-link {
  text-align: right;
  font-family: 'Cormorant SC', serif;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.1em;
  margin: 1.2rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px dotted var(--rule-fine);
}
.ljcr-article p.back-link a {
  text-decoration: none;
  color: var(--burgundy-light);
}
.ljcr-article p.back-link a:hover { color: var(--burgundy-dark); }

/* Patristic chronology table */
.ljcr-article table.chronology {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.96rem;
  background: var(--parchment-dark);
  border: 1px solid var(--rule);
}
.ljcr-article table.chronology caption {
  font-family: 'Cormorant SC', serif;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--burgundy-light);
  padding: 0.6rem 0;
  caption-side: bottom;
  font-size: 0.88rem;
  text-align: right;
}
.ljcr-article table.chronology th,
.ljcr-article table.chronology td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px dotted var(--rule-fine);
}
.ljcr-article table.chronology th {
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy-dark);
  background: var(--parchment-darker);
  border-bottom: 1px solid var(--rule);
}
.ljcr-article table.chronology tr:last-child td { border-bottom: none; }
.ljcr-article table.chronology td.witness {
  font-weight: 600;
  color: var(--burgundy-dark);
  white-space: nowrap;
}
.ljcr-article table.chronology td.date {
  font-style: italic;
  color: var(--burgundy-light);
  white-space: nowrap;
}

/* Fleuron rule */
.ljcr-article hr.fleuron {
  border: none;
  text-align: center;
  margin: 3rem 0;
  height: auto;
  background: transparent;
}
.ljcr-article hr.fleuron::before {
  content: "❦";
  display: inline-block;
  font-size: 1.2rem;
  color: var(--burgundy);
  letter-spacing: 1.5em;
  padding-left: 1.5em;
}

/* Doxological seal */
.ljcr-article p.seal {
  text-align: center;
  font-family: 'Cormorant SC', serif;
  font-style: italic;
  font-size: 1.12rem;
  letter-spacing: 0.18em;
  color: var(--burgundy-dark);
  margin: 3rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  text-transform: uppercase;
}

/* Mobile responsive */
@media (max-width: 720px) {
  .ljcr-article {
    padding: 2rem 1.3rem 2.4rem;
    font-size: 1.1rem;
    line-height: 1.72;
    margin: 1rem auto;
    border-left: none;
    border-right: none;
  }
  .ljcr-article h1.article-title { font-size: 1.95rem; }
  .ljcr-article p.subtitle { font-size: 1.05rem; }
  .ljcr-article h2 { font-size: 1.28rem; margin: 2.5rem 0 1.2rem; }
  .ljcr-article .epigraph { font-size: 1.1rem; padding: 1.3rem 1rem; }
  .ljcr-article p.drop-cap::first-letter { font-size: 3.6rem; }
  .ljcr-article nav.toc,
  .ljcr-article section.glossary,
  .ljcr-article section.footnotes { padding: 1.4rem 1.2rem; }
  .ljcr-article blockquote.scripture { padding: 1rem 1.2rem; font-size: 1rem; }
  .ljcr-article table.chronology { font-size: 0.88rem; }
  .ljcr-article table.chronology th,
  .ljcr-article table.chronology td { padding: 0.55rem 0.6rem; }
}

/* Print */
@media print {
  .ljcr-article {
    background: white; color: #2a0c12;
    max-width: 100%; padding: 0; border: none; box-shadow: none;
  }
  .ljcr-article a { color: #2a0c12; text-decoration: none; }
  .ljcr-article p.back-link { display: none; }
  .ljcr-article nav.toc, .ljcr-article section.glossary, .ljcr-article section.footnotes {
    background: white; border: 1px solid #999; page-break-inside: avoid;
  }
  .ljcr-article h2 { page-break-after: avoid; }
  .ljcr-article blockquote.scripture { page-break-inside: avoid; }
}
