/* The two navigation pages use their own layouts on the mineral surface. */
.rbm-wordpress:is(.rbm-layout-about, .rbm-layout-do-you-know-jesus) .page-heading > .container,
.rbm-wordpress:is(.rbm-layout-about, .rbm-layout-do-you-know-jesus) .page-landscape {
  padding-inline: clamp(20px, 4vw, 48px);
}

.rbm-wordpress:is(.rbm-layout-about, .rbm-layout-do-you-know-jesus) .page-heading > .container {
  max-width: 1306px;
  padding-bottom: 31px;
}

.rbm-wordpress:is(.rbm-layout-about, .rbm-layout-do-you-know-jesus) .page-sheet {
  max-width: 1210px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  --grain: 0;
}

.rbm-wordpress:is(.rbm-layout-about, .rbm-layout-do-you-know-jesus) .page-sheet::after {
  content: none;
}

.rbm-wordpress .rbm-directory {
  color: #30473a;
}

.rbm-wordpress:is(.rbm-layout-about, .rbm-layout-do-you-know-jesus) .entry-content {
  max-width: none;
}

.rbm-wordpress .rbm-about-directory section > h2 {
  margin: 0 0 19px;
  font-size: clamp(26px, 3.5vw, 40px);
}

.rbm-people-grid,
.rbm-life-grid,
.rbm-faith-directory {
  display: grid;
  gap: clamp(15px, 2.5vw, 30px);
}

.rbm-people-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rbm-directory-life {
  margin-top: clamp(36px, 6vw, 80px);
}

.rbm-life-grid,
.rbm-faith-directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rbm-wordpress .rbm-directory .rbm-path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 9px;
  border: 1px solid #b8bca8;
  background: #f8f4e8 url('../assets/texture-linen.png') center / 410px auto;
  color: #30473a;
  text-decoration: none;
  box-shadow: 0 14px 26px -22px #283f32a0;
  transition: box-shadow .2s, border-color .2s;
}

.rbm-wordpress .rbm-directory .rbm-path-card:hover {
  border-color: #6d806a;
  box-shadow: 0 14px 26px -17px #283f3299;
}

.rbm-wordpress .rbm-directory .rbm-path-card:focus-visible {
  outline: 3px solid #324b3d;
  outline-offset: 4px;
}

.rbm-path-photo {
  overflow: hidden;
  aspect-ratio: 1;
  background-color: #d5dad0;
}

.rbm-wordpress .rbm-directory .rbm-path-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
}

.rbm-path-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px clamp(4px, 1.5vw, 15px);
}

.rbm-wordpress .rbm-directory .rbm-path-copy :is(h2, h3) {
  margin: 0;
  color: inherit;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  overflow-wrap: normal;
}

.rbm-wordpress .rbm-directory .rbm-path-card:is(:hover, :focus-visible) :is(h2, h3) {
  text-decoration: underline;
  text-underline-offset: .19em;
  text-decoration-thickness: 1px;
}

.rbm-path-arrow {
  flex: none;
  font: 400 22px/1 Outfit, Arial, sans-serif;
}

.rbm-wordpress .rbm-directory .rbm-path-card--compact {
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
}

.rbm-path-card--compact .rbm-path-photo {
  flex: 0 0 min(27%, 114px);
  align-self: center;
}

.rbm-wordpress .rbm-directory .rbm-path-card--compact h3 {
  font-size: clamp(22px, 2.6vw, 31px);
}

/* The faith guides read as two illustrated choices. */
.rbm-wordpress .rbm-faith-directory .rbm-path-card {
  padding: 13px;
}

.rbm-wordpress .rbm-faith-directory .rbm-path-card:nth-child(2) {
  background: #354e42;
  border-color: #354e42;
  color: #fbf6e9;
}

.rbm-faith-directory .rbm-path-photo {
  aspect-ratio: 684 / 347;
}

.rbm-faith-directory .rbm-path-copy {
  align-items: flex-start;
  padding: clamp(16px, 2.5vw, 30px) clamp(6px, 1.4vw, 18px);
}

.rbm-wordpress .rbm-faith-directory .rbm-path-copy p {
  margin: 12px 0 0;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.55;
}

.rbm-faith-directory .rbm-path-arrow {
  margin-top: 3px;
}

@media (max-width: 670px) {
  .rbm-life-grid,
  .rbm-faith-directory {
    grid-template-columns: minmax(0, 1fr);
  }

  .rbm-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rbm-people-grid > .rbm-path-card:first-child {
    grid-column: 1 / -1;
  }

  .rbm-people-grid > .rbm-path-card:first-child .rbm-path-photo {
    aspect-ratio: 1.24;
  }

  .rbm-people-grid .rbm-path-arrow {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rbm-wordpress .rbm-directory .rbm-path-card {
    transition: none;
  }
}
