/* ===========================================================
   Scripture & History section
   Reuses the archaeology/encounters shell (.stage, .title, .lede,
   .arch-contested, .enc-legend, .toggle-bar, .arch-tag). Adds the
   vertical text-journey timeline (Part A) and the panel scaffold
   for Parts B–D.
   =========================================================== */

.page-scripture-history .sh-panel-title{
  text-align: center;
  color: var(--gold-bright);
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
  margin: 0 auto 1.8rem;
  max-width: 40ch;
}

/* ---------- Part A: vertical timeline ---------- */
.sh-timeline{
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  position: relative;
}
/* the running line */
.sh-timeline::before{
  content: "";
  position: absolute;
  top: .4rem; bottom: .4rem;
  left: 148px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-deep) 8%, var(--gold) 50%, var(--gold-deep) 92%, transparent);
  opacity: .55;
}
.sh-stop{
  display: grid;
  grid-template-columns: 132px 1fr;
  column-gap: 2rem;
  align-items: start;
  padding: .5rem 0 1.9rem;
  position: relative;
}
.sh-stop-era{
  text-align: right;
  padding-top: .15rem;
  color: var(--gold);
  font-family: 'Barlow', 'Inter', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
  line-height: 1.3;
}
/* node dot on the line */
.sh-stop::before{
  content: "";
  position: absolute;
  left: 142px;
  top: .5rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,74,.14);
}
.sh-stop-body{
  background: linear-gradient(160deg, rgba(244,235,217,.06), rgba(244,235,217,.02));
  border: 1px solid rgba(201,162,74,.22);
  border-radius: 14px;
  padding: 1.1rem 1.3rem 1.2rem;
}
.sh-stop-tags{ display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.sh-stop-title{
  margin: 0 0 .5rem;
  color: var(--parchment);
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
}
.sh-stop-what{
  margin: 0 0 .7rem;
  color: var(--parchment-dim);
  line-height: 1.62;
}
.sh-tl-figure{ margin: 0 0 .8rem; }
.sh-tl-figure img{
  display: block; width: 100%; max-height: 360px; object-fit: contain;
  background: rgba(10,14,26,.5);
  border-radius: 10px; border: 1px solid rgba(201,162,74,.25);
}
.sh-tl-figure figcaption{
  margin-top: .35rem; font-size: .72rem; color: var(--parchment-dim); opacity: .75; line-height: 1.4;
}
.sh-tl-figure figcaption a{ color: var(--gold); }
.sh-stop-survives{
  margin: 0 0 .6rem;
  color: var(--parchment-dim);
  font-size: .92rem;
  line-height: 1.55;
  padding: .55rem .8rem;
  background: rgba(107,142,184,.10);
  border-left: 3px solid var(--sky);
  border-radius: 0 8px 8px 0;
}
.sh-stop-survives .sh-label{
  color: var(--sky-bright);
  font-weight: 600;
  font-family: 'Barlow', 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sh-sources{
  list-style: none;
  margin: .2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
}
.sh-sources li{ font-size: .82rem; }
.sh-sources a{ color: var(--gold); text-decoration: none; border-bottom: 1px dotted rgba(201,162,74,.5); }
.sh-sources a:hover, .sh-sources a:focus-visible{ color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

.sh-panel-soon{ text-align: center; padding: 2rem 1rem; }

/* ---------- responsive: stack era above card ---------- */
@media (max-width: 620px){
  .sh-timeline::before{ left: 7px; }
  .sh-stop{ grid-template-columns: 1fr; row-gap: .5rem; padding-left: 30px; }
  .sh-stop-era{ text-align: left; }
  .sh-stop::before{ left: 1px; top: .35rem; }
}

@media (prefers-reduced-motion: reduce){
  .sh-stop-body, .sh-sources a{ transition: none; }
}

/* ---------- Part B: faith vs. history ---------- */
.sh-faith{ max-width: 980px; margin: 0 auto; }
.sh-faith-intro, .sh-faith-closing{
  max-width: 78ch;
  margin: 0 auto 1.6rem;
  color: var(--parchment-dim);
  line-height: 1.64;
  text-align: center;
}
.sh-faith-closing{
  margin-top: 1.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(201,162,74,.22);
  color: var(--parchment);
}
.sh-faith-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}
.sh-faith-colhead{
  font-family: 'Barlow', 'Inter', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid currentColor;
}
.sh-faith-history .sh-faith-colhead{ color: var(--crimson-soft); }
.sh-faith-gospel  .sh-faith-colhead{ color: var(--gold); }

.sh-hist-item{
  background: linear-gradient(160deg, rgba(139,30,30,.12), rgba(139,30,30,.04));
  border: 1px solid rgba(176,72,72,.3);
  border-radius: 14px;
  padding: 1.05rem 1.2rem 1.15rem;
  margin-bottom: 1.1rem;
}
.sh-hist-title{
  margin: .3rem 0 .5rem;
  color: var(--parchment);
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.2rem;
}
.sh-hist-body{ margin: 0 0 .7rem; color: var(--parchment-dim); line-height: 1.6; }
.sh-hist-debated{
  margin: 0 0 .7rem; color: var(--parchment-dim); font-size: .9rem; line-height: 1.5;
}
.sh-hist-debated .sh-label{
  color: var(--gold-bright); font-weight: 600; font-family: 'Barlow','Inter',sans-serif;
  font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; margin-right: .2rem;
}
.sh-hist-oneview{
  margin: 0 0 .7rem; padding: .55rem .75rem;
  background: rgba(20,24,38,.5); border: 1px dashed rgba(168,196,226,.4);
  border-radius: 8px; font-size: .85rem; color: var(--parchment-dim); line-height: 1.5;
}
.sh-oneview-tag{
  display: inline-block; margin-right: .4rem;
  color: var(--sky-bright); font-weight: 700; font-family: 'Barlow','Inter',sans-serif;
  font-size: .68rem; letter-spacing: .05em; text-transform: uppercase;
}

.sh-gospel-item{
  margin: 0 0 1.1rem; padding: 1rem 1.2rem;
  background: linear-gradient(160deg, rgba(201,162,74,.10), rgba(201,162,74,.03));
  border: 1px solid rgba(201,162,74,.3); border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
}
.sh-gospel-kjv{
  margin: 0 0 .5rem; color: var(--parchment);
  font-family: 'Cormorant Garamond', 'Fraunces', serif;
  font-size: 1.14rem; line-height: 1.5; font-style: italic;
}
.sh-gospel-ref{
  display: block; font-style: normal; color: var(--gold-bright);
  font-family: 'Barlow','Inter',sans-serif; font-weight: 600; font-size: .82rem;
  letter-spacing: .03em; margin-bottom: .5rem;
}
.sh-kjv-badge{
  display: inline-block; margin-left: .3rem; padding: .05rem .4rem;
  background: rgba(201,162,74,.2); border: 1px solid var(--gold-deep); border-radius: 6px;
  font-size: .64rem; letter-spacing: .08em; color: var(--gold);
}
.sh-gospel-point{ margin: 0; color: var(--parchment-dim); font-size: .92rem; line-height: 1.55; }

@media (max-width: 760px){
  .sh-faith-grid{ grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- Part C: word-by-word tool ---------- */
.sh-tool{ max-width: 1000px; margin: 0 auto; }
.sh-tool-head{ display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.2rem; }
.sh-tool-selectlabel{
  color: var(--gold); font-family: 'Barlow','Inter',sans-serif; font-weight: 600;
  font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
}
.sh-tool-select{
  background: var(--bg-mid); color: var(--parchment);
  border: 1px solid var(--gold-deep); border-radius: 9px;
  padding: .45rem .8rem; font-size: .95rem; font-family: 'Barlow','Inter',sans-serif;
}
.sh-tool-hint{ flex: 1 1 260px; margin: 0; color: var(--parchment-dim); font-size: .82rem; line-height: 1.45; opacity: .85; }

.sh-verse{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: .9rem 0;
  border-top: 1px solid rgba(201,162,74,.16);
  align-items: start;
}
.sh-verse:first-child{ border-top: none; }
.sh-pane{ position: relative; }
.sh-vnum{
  display: inline-block; min-width: 1.4em; margin-inline-end: .4rem;
  color: var(--gold-deep); font-weight: 700; font-size: .78rem; vertical-align: .3em;
  font-family: 'Barlow','Inter',sans-serif;
}
.sh-pane-kjv{ color: var(--parchment-dim); line-height: 1.7; font-size: 1.02rem; }
/* localized reading pane (page-language verse in place of the KJV column) */
.sh-pane-loc{ color: var(--parchment); line-height: 1.85; font-size: 1.08rem; }
.sh-loc-text{ display: inline; }
.sh-pane-heb{
  text-align: right;
  font-family: 'Frank Ruhl Libre', 'David', 'Times New Roman', serif;
  font-size: 1.7rem; line-height: 2.1; color: var(--parchment);
}

/* word buttons — reset native button, keep focusable */
.sh-heb-word, .sh-kjv-word{
  font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: .02em .12em;
  cursor: pointer; border-radius: 5px; transition: background-color .12s, color .12s, box-shadow .12s;
}
.sh-heb-word{ padding: .04em .16em; }
.sh-kjv-word.is-plain{ cursor: default; }
.sh-heb-word:hover, .sh-kjv-word:not(.is-plain):hover{ background: rgba(201,162,74,.16); }
.sh-heb-word:focus-visible, .sh-kjv-word:focus-visible{
  outline: 2px solid var(--gold-bright); outline-offset: 1px; background: rgba(201,162,74,.14);
}
.sh-heb-word.is-active, .sh-kjv-word.is-active{ background: var(--gold); color: var(--bg-deep); }
.sh-heb-word.is-linked, .sh-kjv-word.is-linked{ background: rgba(107,142,184,.32); color: var(--halo); box-shadow: inset 0 -2px 0 var(--sky-bright); }

/* the word detail panel */
.sh-word-panel{
  position: sticky; bottom: .6rem;
  margin: 1.2rem auto 0; max-width: 560px;
  background: linear-gradient(160deg, rgba(20,24,38,.97), rgba(26,20,16,.97));
  border: 1px solid var(--gold-deep); border-radius: 14px;
  padding: 1rem 1.2rem 1.1rem; box-shadow: 0 10px 30px var(--shadow);
}
.sh-word-close{
  float: right; background: none; border: 0; color: var(--parchment-dim);
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .2rem;
}
.sh-word-close:focus-visible{ outline: 2px solid var(--gold-bright); border-radius: 5px; }
.sh-word-heb{
  margin: 0 0 .6rem; font-family: 'Frank Ruhl Libre','David',serif;
  font-size: 2.2rem; color: var(--gold-bright); text-align: right;
}
.sh-word-dl{ display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin: 0; }
.sh-word-dl dt{
  color: var(--gold); font-family: 'Barlow','Inter',sans-serif; font-weight: 600;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding-top: .15rem;
}
.sh-word-dl dd{ margin: 0; color: var(--parchment-dim); line-height: 1.5; }
.sh-word-dl a{ color: var(--gold); }

.sh-tool-attrib{ margin: 1.4rem 0 0; color: var(--parchment-dim); font-size: .72rem; line-height: 1.5; opacity: .7; }
.sh-tool-error{ color: var(--crimson-soft); text-align: center; padding: 2rem; }

@media (max-width: 680px){
  .sh-verse{ grid-template-columns: 1fr; gap: .4rem; }
  .sh-pane-heb{ font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce){
  .sh-heb-word, .sh-kjv-word{ transition: none; }
}

/* ---------- Part D: discrepancies examined ---------- */
.sh-disc{ max-width: 860px; margin: 0 auto; }
.sh-disc-item{
  background: linear-gradient(160deg, rgba(244,235,217,.05), rgba(244,235,217,.02));
  border: 1px solid rgba(201,162,74,.22);
  border-radius: 14px;
  padding: 1.1rem 1.3rem 1.2rem;
  margin-bottom: 1.2rem;
}
.sh-disc-title{
  margin: .3rem 0 .55rem;
  color: var(--parchment);
  font-family: 'Fraunces','Cormorant Garamond',serif; font-weight: 600;
  font-size: clamp(1.1rem, 1rem + .5vw, 1.32rem);
}
.sh-disc-what{ margin: 0 0 .7rem; color: var(--parchment); line-height: 1.6; }
.sh-disc-why{ margin: 0 0 .9rem; color: var(--parchment-dim); font-size: .93rem; line-height: 1.55; }
.sh-disc-why .sh-label{
  color: var(--gold-bright); font-weight: 600; font-family: 'Barlow','Inter',sans-serif;
  font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; margin-right: .25rem;
}
.sh-disc-effects{ display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .5rem; }
.sh-disc-affects, .sh-disc-notaffects{ padding: .7rem .85rem; border-radius: 10px; font-size: .9rem; line-height: 1.5; color: var(--parchment-dim); }
.sh-disc-affects{ background: rgba(201,162,74,.10); border-left: 3px solid var(--gold-deep); }
.sh-disc-notaffects{ background: rgba(109,187,109,.12); border-left: 3px solid var(--pulse-good); }
.sh-disc-h{
  display: block; margin-bottom: .3rem;
  font-family: 'Barlow','Inter',sans-serif; font-weight: 700;
  font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
}
.sh-disc-affects .sh-disc-h{ color: var(--gold); }
.sh-disc-notaffects .sh-disc-h{ color: var(--pulse-good); }
.sh-disc .sh-sources{ margin-top: .3rem; }

@media (max-width: 620px){
  .sh-disc-effects{ grid-template-columns: 1fr; }
}
