/* The page uses the shared light/dark theme. All new content works without JS. */
main > .pn > h2 {
  margin: 0;
  padding: 5px 10px;
  font: bold 13px/1.6 var(--head-font);
  color: #fff;
  background: var(--gloss-blue);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  border-bottom: 1px solid #1a4aa8;
}
main > .pn > h2 small { font-weight: normal; opacity: .85; }
.faith-panel, #creed, #saints { scroll-margin-top: 12px; }
.faith-panel > .pn-body { padding: 16px; }
.faith-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.faith-nav a { font-weight: bold; }
.gospel-summary { padding: 10px 12px; border-left: 3px solid var(--orange); background: var(--hover); }
.gospel-summary strong { display: block; color: var(--navy); font-size: 17px; }
.gospel-story { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.gospel-story > section { padding: 4px 0 10px; border-bottom: 1px solid var(--line); }
.gospel-story h3 { font-size: 16px; }
.gospel-center h3 { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.faith-ref { font-size: 11px; line-height: 1.7; }
.gospel-response { margin: 16px 0; }
.gospel-response h3 { margin: 0 0 6px; }
.faith-terms { border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; }
.faith-terms summary { cursor: pointer; color: var(--navy); font-weight: bold; }
.faith-terms dl { margin: 12px 0 0; }
.faith-terms dl > div { display: grid; grid-template-columns: 85px 1fr; gap: 12px; margin: 6px 0; }
.faith-terms dt { font-weight: bold; }
.faith-terms dd { margin: 0; }
.faith-source { margin-top: 12px; font-size: 11px; }
.bible-timeline { margin: 12px 0 0; }
.bible-timeline figcaption { color: var(--muted); font-size: 11px; margin-bottom: 16px; }
.timeline-era { margin-top: 18px; }
.timeline-era > h3 { margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.timeline-era > h3 span { display: block; margin-top: 2px; color: var(--muted); font: normal 11px/1.5 var(--ui-font); }
.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline-track > li { position: relative; min-width: 0; margin: 0; padding: 0 12px 10px 0; }
/* Each line ends at the next node. The arrows also show reading direction. */
.timeline-track > li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 34px;
  width: calc(100% - 34px);
  border-top: 2px solid var(--line);
}
.timeline-track > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: rotate(45deg);
}
.timeline-node {
  display: grid;
  place-items: center;
  position: relative;
  width: 36px;
  height: 36px;
  margin-bottom: 9px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--card);
  color: var(--navy);
  font: bold 12px/1 var(--head-font);
}
.timeline-track h4 { margin: 0 0 6px; color: var(--navy); font: bold 13px/1.45 var(--head-font); }
.timeline-track p { font-size: 12px; line-height: 1.6; }
.timeline-track a { font-size: 10px; }
.timeline-christ { padding: 10px; background: var(--hover); border: 1px solid var(--line); border-radius: 6px; }
.timeline-christ .timeline-node { background: var(--hover); }
.timeline-victory .timeline-node { border-color: var(--orange); border-width: 3px; }
.timeline-victory h4 { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.timeline-future .timeline-node { border-style: dashed; }
.bible-phonebook { margin: 14px 0; }
.bible-phonebook > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.bible-phonebook > div:nth-child(odd) { background: var(--hover); }
.bible-phonebook dt { font-weight: normal; }
.bible-phonebook dd { margin: 0; text-align: right; }
.bible-phonebook a { font-weight: bold; }
.bible-phonebook .phonebook-call { border-left: 3px solid var(--orange); }
.phonebook-context { font-size: 11px; color: var(--muted); }
.faith-nav a:focus-visible, .faith-panel a:focus-visible, .faith-terms summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 600px) {
  .gospel-story { grid-template-columns: 1fr; }
  .faith-panel > .pn-body { padding: 12px; }
  .timeline-track { grid-template-columns: 1fr; }
  .timeline-track > li { padding: 0 0 18px 48px; min-height: 64px; }
  .timeline-node { position: absolute; top: 0; left: 0; }
  .timeline-track > li:not(:last-child)::before { top: 36px; left: 17px; width: 0; height: calc(100% - 36px); border-top: 0; border-left: 2px solid var(--line); }
  .timeline-track > li:not(:last-child)::after { top: auto; bottom: 7px; left: 14px; transform: rotate(135deg); }
  .timeline-track > li:last-child { padding-bottom: 0; }
  .timeline-track h4 { padding-top: 3px; }
  .timeline-track p { margin-bottom: 3px; }
}
@media (max-width: 380px) {
  .bible-phonebook > div { grid-template-columns: 1fr; gap: 3px; }
  .bible-phonebook dd { text-align: left; }
}
