/* A quiet guide cover and open reading layouts, shared by both faith articles. */
.rbm-wordpress:is(.rbm-layout-how-to-become-a-christian, .rbm-layout-steps-to-peace-with-god) .page-heading {
  --texture: url('../assets/texture-mineral.png');
  --grain: .24;
  background: #30483d;
  color: #fcf3df;
}

.rbm-wordpress:is(.rbm-layout-how-to-become-a-christian, .rbm-layout-steps-to-peace-with-god) .page-heading > .container {
  max-width: 1240px;
  padding-block: clamp(38px, 6vw, 80px);
}

.rbm-wordpress:is(.rbm-layout-how-to-become-a-christian, .rbm-layout-steps-to-peace-with-god) .page-heading > .bg-sketch {
  opacity: .24;
  background-position: 92% 60%;
  mix-blend-mode: screen;
  filter: invert(1);
}

.rbm-wordpress:is(.rbm-layout-how-to-become-a-christian, .rbm-layout-steps-to-peace-with-god) .page-emblem {
  color: #dbc297;
}

.rbm-wordpress:is(.rbm-layout-how-to-become-a-christian, .rbm-layout-steps-to-peace-with-god) .page-heading h1 {
  max-width: 730px;
  font-size: clamp(46px, 6.4vw, 80px);
  text-wrap: balance;
}

.rbm-wordpress:is(.rbm-layout-how-to-become-a-christian, .rbm-layout-steps-to-peace-with-god) .page-landscape {
  --texture: url('../assets/texture-linen.png');
  --grain: .3;
  padding: clamp(32px, 5vw, 70px) clamp(20px, 5vw, 58px);
  background: #f3efdf;
}

.rbm-wordpress:is(.rbm-layout-how-to-become-a-christian, .rbm-layout-steps-to-peace-with-god) .page-sheet {
  --grain: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.rbm-wordpress:is(.rbm-layout-how-to-become-a-christian, .rbm-layout-steps-to-peace-with-god) .page-sheet::after {
  content: none;
}

.rbm-wordpress.rbm-layout-steps-to-peace-with-god .entry-content {
  max-width: 1080px;
}

.rbm-wordpress .rbm-faith-guide {
  --faith-border: #bfc2a9;
  --faith-accent: #846537;
  line-height: 1.7;
}

.rbm-wordpress .rbm-faith-guide :is(h2, h3) {
  margin-top: 0;
  text-wrap: pretty;
}

.rbm-wordpress .rbm-faith-guide h2 {
  font-size: clamp(30px, 4.5vw, 47px);
}

.rbm-wordpress .rbm-faith-guide p {
  margin: 0 0 15px;
}

.rbm-wordpress .rbm-faith-guide :is(.rbm-faith-opening, .rbm-faith-step-copy, .rbm-faith-reading-section, .rbm-faith-prayer, .rbm-faith-scripture) > p:last-child {
  margin-bottom: 0;
}

.rbm-wordpress .rbm-faith-opening > p:first-child {
  font: 500 clamp(24px, 3.1vw, 34px)/1.3 'Cormorant Garamond', Georgia, serif;
  color: #294235;
  margin-bottom: 22px;
}

.rbm-faith-reading-section {
  padding: clamp(25px, 4vw, 38px) 0 0;
  margin: clamp(25px, 4vw, 38px) 0 0;
  border-top: 1px solid var(--faith-border);
}

.rbm-wordpress .entry-content .rbm-faith-scripture {
  margin: 0 0 20px;
  padding: 15px clamp(13px, 3vw, 25px);
  border-left: 3px solid var(--faith-accent);
  background: #e2e7d9;
  font: 600 clamp(21px, 2.35vw, 27px)/1.35 'Cormorant Garamond', Georgia, serif;
}

.rbm-wordpress .rbm-faith-scripture em {
  font: 500 .75em/1.45 Outfit, Arial, sans-serif;
  color: #44604d;
  white-space: normal;
}

.rbm-wordpress .rbm-faith-next {
  max-width: 760px;
  margin: clamp(32px, 5vw, 60px) auto 0;
  padding: clamp(16px, 4vw, 32px);
  border-top: 3px solid #bda479;
  background: #30483d;
  color: #fcf3df;
}

.rbm-wordpress .rbm-faith-next a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rbm-wordpress .rbm-faith-next a:hover {
  color: #e6cda2;
}

/* The numbered guide pairs each step with its original illustration. */
.rbm-faith-step {
  display: grid;
  grid-template: 'heading figure' auto 'copy figure' 1fr / minmax(0, 1fr) minmax(0, .45fr);
  align-items: start;
  gap: 0 clamp(23px, 5vw, 62px);
  margin: 0 0 clamp(25px, 4vw, 45px);
  padding: 0 0 clamp(25px, 4vw, 45px);
  border-bottom: 1px solid var(--faith-border);
}

.rbm-faith-step > h2 {
  grid-area: heading;
}

.rbm-wordpress .rbm-faith-step > h2 span {
  display: block;
  margin-bottom: 8px;
  color: #765728;
  font: 600 .8rem/1.3 Outfit, Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rbm-faith-step-copy {
  grid-area: copy;
  min-width: 0;
}

.rbm-faith-diagrams {
  display: grid;
  grid-area: figure;
  gap: 12px;
  min-width: 0;
}

.rbm-wordpress .entry-content .rbm-faith-diagrams figure {
  margin: 0;
  padding: 11px;
  border: 1px solid #c5c6ad;
  background: #faf8f0;
}

.rbm-wordpress .entry-content .rbm-faith-diagrams img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.rbm-wordpress .rbm-faith-prayer {
  margin: 25px 0;
  padding: clamp(16px, 3vw, 26px);
  border-left: 3px solid var(--faith-accent);
  background: #e9e0cd;
}

.rbm-wordpress .rbm-faith-prayer h3 {
  margin: 0 0 12px;
}

@media (max-width: 760px) {
  .rbm-faith-step {
    grid-template: 'heading' auto 'figure' auto 'copy' auto / minmax(0, 1fr);
  }

  .rbm-faith-diagrams {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
    margin-bottom: 19px;
  }
}
