/*
 * CatholicG33k Teachings — Jesus Christ rollout.
 *
 * The frozen God page supplies the shared visual grammar. This file contains
 * only route-specific adaptations for the editable Jesus Christ series.
 */

body.cg-teaching-jesus-pilot .cg-legacy-article-toc[hidden] {
  display: none !important;
}

body.cg-teaching-jesus-pilot.cg-teaching-lesson .cg-teaching-hero .cg-title {
  max-width: 16ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
  text-wrap: balance;
}

body.cg-teaching-jesus-pilot.cg-teaching-lesson .cg-page-nav-pill {
  flex: 1 1 10.5rem;
  min-height: 48px;
  line-height: 1.35;
  text-align: center;
}

/* ---------- Jesus Christ series ---------- */

body.cg-teaching-jesus-pilot #jesus-christ-teaching-series {
  border-color: rgba(217, 163, 0, .34);
}

body.cg-teaching-jesus-pilot #jesus-christ-teaching-series .cg-flydock-manuscript-prose > h3 {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.8rem;
  color: rgba(226, 182, 83, .74);
  font-size: .67rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.cg-teaching-jesus-pilot #jesus-christ-teaching-series .cg-flydock-manuscript-prose > h3::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: rgba(217, 163, 0, .42);
}

body.cg-teaching-jesus-pilot .cg-series-pills--overview {
  margin-bottom: 1.8rem;
}

body.cg-teaching-jesus-pilot .cg-series-pills .cg-series-current {
  border-style: dashed;
  border-color: rgba(217, 163, 0, .32);
  color: rgba(240, 237, 230, .62);
}

body.cg-teaching-jesus-pilot .cg-series-pills .cg-series-current:hover,
body.cg-teaching-jesus-pilot .cg-series-pills .cg-series-current:focus-visible {
  color: rgba(240, 237, 230, .86);
}

body.cg-teaching-jesus-pilot.cg-teaching-lesson .cg-series-pills .cg-series-current {
  background: rgba(217, 163, 0, .065);
  border-style: solid;
  border-color: rgba(217, 163, 0, .66);
  border-left-width: 2px;
  color: rgba(240, 201, 105, .98);
  box-shadow: none;
}

body.cg-teaching-jesus-pilot .cg-series-pills--core .cg-series-start-link {
  display: grid !important;
  flex: 1 0 100%;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: start;
  gap: .35rem 1rem;
  min-height: 72px;
  padding: 1rem 1.15rem;
  background: rgba(217, 163, 0, .045);
  border-left-width: 2px;
  border-radius: 2px;
  text-align: left;
}

body.cg-teaching-jesus-pilot .cg-series-start-label {
  grid-column: 1 / -1;
  color: rgba(226, 182, 83, .72);
  font-family: var(--cg-font-heading, Cinzel, Georgia, serif);
  font-size: .57rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- Jesus Christ misconceptions ---------- */

body.cg-teaching-jesus-pilot #misconceptions {
  border-color: rgba(217, 163, 0, .32);
}

/* ---------- Prayer ---------- */

body.cg-teaching-jesus-pilot #prayer {
  width: min(100%, 76ch);
  padding: clamp(2rem, 6vw, 3.75rem);
  background: rgba(255, 255, 255, .014);
  border-top: 2px solid rgba(217, 163, 0, .68);
  text-align: left;
}

body.cg-teaching-jesus-pilot #prayer::before {
  content: "Prayer";
  display: block;
  margin-bottom: .75rem;
  color: var(--cg-teaching-gold-warm);
  font-family: var(--cg-font-heading, Cinzel, Georgia, serif);
  font-size: .67rem;
  letter-spacing: .19em;
  text-align: center;
  text-transform: uppercase;
}

body.cg-teaching-jesus-pilot #prayer > h2 {
  text-align: center;
}

body.cg-teaching-jesus-pilot #prayer > h2::after {
  margin-inline: auto;
}

body.cg-teaching-jesus-pilot #prayer .cg-flydock-manuscript-prose {
  max-width: 66ch;
  margin-inline: auto;
  color: rgba(240, 237, 230, .88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.17rem);
  line-height: 1.9;
}

body.cg-teaching-jesus-pilot #prayer .cg-flydock-manuscript-prose p:last-child {
  margin-bottom: 0;
  color: rgba(240, 201, 105, .94);
}

/* ---------- Sources ---------- */

body.cg-teaching-jesus-pilot #sources {
  width: min(100%, 78ch);
  background: rgba(255, 255, 255, .012);
}

body.cg-teaching-jesus-pilot #sources li {
  margin: 0;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: rgba(240, 237, 230, .72);
  line-height: 1.7;
}

body.cg-teaching-jesus-pilot #sources li:last-child {
  border-bottom: 0;
}

body.cg-teaching-jesus-pilot #sources li strong,
body.cg-teaching-jesus-pilot #sources h3 {
  color: rgba(226, 182, 83, .9);
}

body.cg-teaching-jesus-pilot #sources a {
  color: rgba(226, 182, 83, .9);
  text-decoration-color: rgba(217, 163, 0, .38);
  text-underline-offset: .22em;
}

body.cg-teaching-jesus-pilot #sources a:hover {
  color: #f0c969;
  text-decoration-color: currentColor;
}

body.cg-teaching-jesus-pilot #sources a:focus-visible {
  outline: 2px solid rgba(226, 182, 83, .82);
  outline-offset: 3px;
}

/* ---------- Jesus Christ continuation ---------- */

body.cg-teaching-jesus-pilot .cg-bottom-continuation-intro {
  max-width: 64ch;
}

body.cg-teaching-jesus-pilot .cg-bottom-continuation-series {
  max-width: 32rem;
}

@media (max-width: 760px) {
  body.cg-teaching-jesus-pilot #prayer {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  body.cg-teaching-jesus-pilot .cg-teaching-hero .cg-title {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  body.cg-teaching-jesus-pilot.cg-teaching-lesson .cg-teaching-hero .cg-title {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.5vw, 3.35rem);
  }

  body.cg-teaching-jesus-pilot .cg-series-pills--core .cg-series-start-link {
    min-height: 68px;
    padding: .95rem 1rem;
  }
}
