/* Holy Land Sacred Region V1
 * A region-specific editorial layer over the shared city-v1 place, map,
 * relationship, saint, practical, section-nav, and Journey components.
 */

.sacred-region-v1 {
  background: var(--er-parchment, #f4efe4);
  color: var(--er-ink, #1f1b14);
}

.sacred-region-v1 .container {
  width: min(100% - 2rem, 1160px);
  margin-inline: auto;
}

.sacred-region-v1 .destination-category-hero-copy {
  max-width: 760px;
}

.sacred-region-v1 .destination-category-hero-copy p {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.holy-land-sacred-orientation {
  position: relative;
  z-index: 2;
  background: var(--er-ink, #1f1b14);
  color: #f7f1e3;
  border-top: 1px solid rgba(247, 241, 227, 0.15);
  border-bottom: 1px solid rgba(247, 241, 227, 0.15);
}

.holy-land-sacred-orientation .container {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 2.45fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-block: 1.25rem;
}

.holy-land-sacred-orientation__title,
.holy-land-sacred-orientation__list {
  margin: 0;
}

.holy-land-sacred-orientation__title {
  font-family: var(--er-serif, serif);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--er-gold, #d9b66a);
}

.holy-land-sacred-orientation__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  list-style: none;
}

.holy-land-sacred-orientation__list li {
  min-width: 0;
  padding: 0.15rem clamp(0.65rem, 1.6vw, 1.25rem);
  border-left: 1px solid rgba(247, 241, 227, 0.16);
  font-family: var(--er-sans, sans-serif);
  font-size: var(--er-fs-floor, 0.875rem);
  line-height: 1.35;
  color: rgba(247, 241, 227, 0.74);
}

.holy-land-sacred-orientation__place {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--er-mono, monospace);
  font-size: var(--er-fs-floor, 0.875rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f7f1e3;
}

.holy-land-section,
.sacred-region-v1 .city-v1-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  scroll-margin-top: 112px;
}

.holy-land-narrow {
  max-width: 820px;
}

.holy-land-section-head {
  max-width: 780px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.holy-land-orientation-copy {
  background: #f8f4eb;
}

.holy-land-orientation-copy h2 {
  margin: 0 0 1.5rem;
  font-family: var(--er-serif, serif);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.03;
  text-wrap: balance;
}

.holy-land-orientation-copy__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.holy-land-orientation-copy__body p {
  margin: 0;
  font-family: var(--er-serif, serif);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.72;
  color: var(--er-ink-2, #3a342a);
}

.holy-land-gospel-line {
  background: var(--er-paper, #fbf7ec);
}

.holy-land-gospel-line__chapters {
  counter-reset: gospel-chapter;
}

.holy-land-gospel-chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  min-width: 0;
  padding-block: clamp(2rem, 4.5vw, 4rem);
  border-top: 1px solid var(--er-rule, rgba(31, 27, 20, 0.12));
}

.holy-land-gospel-chapter--text {
  grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1.65fr);
  padding-block: clamp(1.7rem, 3vw, 2.5rem);
}

.holy-land-gospel-chapter--text::before {
  content: "";
  width: clamp(48px, 7vw, 90px);
  height: 1px;
  background: var(--er-clay, #a65a44);
}

.holy-land-gospel-chapter--wide {
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
}

.holy-land-gospel-chapter--side:nth-child(even) .holy-land-gospel-chapter__media {
  order: 2;
}

.holy-land-gospel-chapter__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--er-r-md, 8px);
  background: var(--er-limestone, #ece5d8);
}

.holy-land-gospel-chapter__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.holy-land-gospel-chapter--wide .holy-land-gospel-chapter__media img {
  aspect-ratio: 16 / 9;
}

.holy-land-gospel-chapter__body {
  min-width: 0;
  max-width: 650px;
}

.holy-land-gospel-chapter__number,
.holy-land-gospel-chapter__place,
.holy-land-geography__index,
.holy-land-threads__grid > article > span {
  font-family: var(--er-mono, monospace);
  font-size: var(--er-fs-floor, 0.875rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--er-clay-deep, #7c4a3a);
}

.holy-land-gospel-chapter__number {
  display: inline-block;
  min-width: 2.5rem;
  margin-right: 0.5rem;
}

.holy-land-gospel-chapter__place {
  display: inline-block;
  margin: 0;
  color: var(--er-ink-3, #57503f);
}

.holy-land-gospel-chapter h3 {
  margin: 0.55rem 0 0.8rem;
  font-family: var(--er-serif, serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.02;
  color: var(--er-ink, #1f1b14);
}

.holy-land-gospel-chapter__body > p:last-of-type {
  margin: 0;
  font-family: var(--er-serif, serif);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.68;
  color: var(--er-ink-2, #3a342a);
}

.holy-land-gospel-chapter__body > a {
  display: inline-flex;
  gap: 0.55rem;
  margin-top: 1.15rem;
  font-family: var(--er-sans, sans-serif);
  font-weight: 650;
  color: var(--er-clay-deep, #7c4a3a);
  text-underline-offset: 0.22em;
}

.holy-land-geography {
  background: #efe7d8;
}

.holy-land-geography__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--er-rule, rgba(31, 27, 20, 0.12));
  border-left: 1px solid var(--er-rule, rgba(31, 27, 20, 0.12));
}

.holy-land-geography__grid article {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--er-rule, rgba(31, 27, 20, 0.12));
  border-bottom: 1px solid var(--er-rule, rgba(31, 27, 20, 0.12));
}

.holy-land-geography__grid h3,
.holy-land-threads__grid h3 {
  margin: 0.55rem 0 0.8rem;
  font-family: var(--er-serif, serif);
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

.holy-land-geography__grid article > p:not([class]) {
  margin: 0;
  line-height: 1.65;
  color: var(--er-ink-2, #3a342a);
}

.holy-land-geography__ground {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--er-rule-soft, rgba(31, 27, 20, 0.08));
  font-size: var(--er-fs-floor, 0.875rem);
  line-height: 1.6;
  color: var(--er-ink-3, #57503f);
}

.holy-land-geography__ground strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--er-mono, monospace);
  font-size: var(--er-fs-floor, 0.875rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--er-clay-deep, #7c4a3a);
}

.holy-land-gateways {
  background: var(--er-ink, #1f1b14);
  color: #f7f1e3;
}

.holy-land-gateways .city-v1-kicker,
.holy-land-gateways .city-v1-head h2 {
  color: inherit;
}

.holy-land-gateways .city-v1-kicker {
  color: var(--er-gold, #d9b66a);
}

.holy-land-gateways .er-relation__link {
  background: #f7f1e3;
}

.holy-land-threads {
  background: #f8f4eb;
}

.holy-land-threads__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.holy-land-threads__grid article {
  min-width: 0;
  padding-top: 1.25rem;
  border-top: 2px solid var(--er-clay, #a65a44);
}

.holy-land-threads__grid article > p:not(.holy-land-threads__places) {
  margin: 0;
  line-height: 1.65;
  color: var(--er-ink-2, #3a342a);
}

.holy-land-threads__places {
  margin: 1.25rem 0 0;
  font-family: var(--er-mono, monospace);
  font-size: var(--er-fs-floor, 0.875rem);
  line-height: 1.55;
  color: var(--er-ink-3, #57503f);
}

.sacred-region-v1 #city-essential-places {
  background: var(--er-paper, #fbf7ec);
}

.sacred-region-v1 #city-connected-saints {
  background: #efe7d8;
}

.sacred-region-v1 #city-practical {
  background: #f8f4eb;
}

.sacred-region-v1 .city-v1-place-title,
.sacred-region-v1 .city-v1-place-title a,
.sacred-region-v1 .holy-land-gospel-chapter h3,
.sacred-region-v1 .holy-land-geography__grid h3,
.sacred-region-v1 .holy-land-threads__grid h3,
.sacred-region-v1 .er-relation__title {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.er-city-hub-v1.sacred-region-v1 .city-v1-place .city-v1-place-title {
  /* The theme intentionally reduces the root rem baseline at phone widths;
     keep these long canonical names at a true readable floor. */
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.16;
}

/* Holy Land witnesses lead with governed sacred-place photography rather than
   the sitewide devotional portrait set. A landscape plate keeps the visible
   subject legible and lets the five cards read as one geographic sequence. */
.sacred-region-v1 .city-v1-saints .er-relation--cards.er-relation--compact .er-relation__plate {
  aspect-ratio: 16 / 10;
}

.sacred-region-v1 .city-v1-saints .er-relation__plate img {
  object-position: center;
}

.sacred-region-v1 .city-v1-saints .er-relation__meta-value {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* The fifth witness closes the four-card apostolic/household row as a quiet
   Bethlehem coda instead of looking like an accidental orphan at the left. */
@media (min-width: 900px) {
  .sacred-region-v1 .city-v1-saints .er-relation--cards.er-relation--n4 > .er-relation__item:nth-child(5):last-child {
    grid-column: 2 / span 2;
    justify-self: center;
    width: calc(50% - 8px);
  }
}

@media (max-width: 640px) {
  .sacred-region-v1 .city-v1-saints .er-relation--cards.er-relation--n4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .sacred-region-v1 .city-v1-saints .er-relation--cards.er-relation--n4 > .er-relation__item:nth-child(5):last-child {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 899px) {
  /* The fixed global feedback tab can cover sacred-region copy at tablet
     widths. This stylesheet is route-gated, so the suppression stays local. */
  .er-feedback-tab {
    display: none;
  }

  .sacred-region-v1 .city-v1-saints .er-relation--cards.er-relation--n4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sacred-region-v1 .city-v1-saints .er-relation--cards.er-relation--n4 > .er-relation__item:nth-child(5):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 8px);
  }
}

/* A sacred region has five geographic groups rather than one city's compact
   neighborhood list. On wide screens, set the first three gateways in a
   deliberate row and give the two multi-place regions half a row each. This
   preserves Gospel order while avoiding a long stack of orphaned single cards. */
@media (min-width: 1100px) {
  .sacred-region-v1 #city-essential-places > .container {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(1.4rem, 2.4vw, 2rem);
    align-items: start;
  }

  .sacred-region-v1 #city-essential-places .city-v1-head,
  .sacred-region-v1 #city-essential-places .city-place-collections__map-section {
    grid-column: 1 / -1;
  }

  .sacred-region-v1 #city-essential-places .city-v1-essential-group {
    grid-column: span 2;
    min-width: 0;
  }

  .sacred-region-v1 #city-essential-places .city-v1-essential-group:nth-of-type(n + 4) {
    grid-column: span 3;
  }

  .sacred-region-v1 #city-essential-places .city-v1-essential-group + .city-v1-essential-group {
    margin-top: 0;
  }

  .sacred-region-v1 #city-essential-places .city-v1-essential-group:nth-of-type(-n + 3) .city-v1-place {
    flex: 1 1 100%;
    max-width: none;
  }

  .sacred-region-v1 #city-essential-places .city-v1-essential-group:nth-of-type(n + 4) .city-v1-place {
    flex: 0 1 calc((100% - var(--city-v1-card-gap)) / 2);
  }
}

.holy-land-source-note {
  padding: 1.4rem 0;
  border-top: 1px solid var(--er-rule, rgba(31, 27, 20, 0.12));
  background: var(--er-paper, #fbf7ec);
}

.holy-land-source-note p {
  max-width: 760px;
  margin: 0;
  font-size: var(--er-fs-floor, 0.875rem);
  line-height: 1.6;
  color: var(--er-ink-3, #57503f);
}

.holy-land-source-note a {
  color: var(--er-clay-deep, #7c4a3a);
}

@media (max-width: 960px) {
  .holy-land-sacred-orientation .container {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .holy-land-sacred-orientation__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0.9rem;
  }

  .holy-land-gospel-chapter,
  .holy-land-gospel-chapter--wide {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.82fr);
  }

  .holy-land-gospel-chapter--text {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .holy-land-threads__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sacred-region-v1 .container {
    width: min(100% - 1.5rem, 1160px);
  }

  .sacred-region-v1 .destination-category-hero {
    min-height: 620px;
  }

  .sacred-region-v1 .destination-category-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .holy-land-sacred-orientation__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holy-land-sacred-orientation__list li {
    padding-left: 0.75rem;
  }

  .holy-land-orientation-copy__body,
  .holy-land-geography__grid,
  .holy-land-gospel-chapter,
  .holy-land-gospel-chapter--wide,
  .holy-land-gospel-chapter--text {
    grid-template-columns: minmax(0, 1fr);
  }

  .holy-land-gospel-chapter--text::before {
    width: 54px;
  }

  .holy-land-gospel-chapter--side:nth-child(even) .holy-land-gospel-chapter__media {
    order: 0;
  }

  .holy-land-gospel-chapter__media img,
  .holy-land-gospel-chapter--wide .holy-land-gospel-chapter__media img {
    aspect-ratio: 4 / 3;
  }

  .holy-land-geography__grid {
    border-left: 0;
  }

  .holy-land-geography__grid article {
    padding-inline: 0;
    border-right: 0;
  }

  .holy-land-section,
  .sacred-region-v1 .city-v1-section {
    padding-block: clamp(3.4rem, 13vw, 5rem);
  }
}

@media (max-width: 420px) {
  .sacred-region-v1 .city-place-collections__map .leaflet-top.leaflet-left {
    top: auto;
    bottom: 8px;
  }

  .holy-land-sacred-orientation__list {
    grid-template-columns: 1fr;
  }

  .holy-land-sacred-orientation__list li {
    padding-block: 0.45rem;
  }

  .holy-land-gospel-chapter h3 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }
}
