/* Private motif concept: homepage and Discover pathway only. */
.home-pathway-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 158px;
  gap: 28px;
  align-items: end;
}

.pathway-motif {
  width: 158px;
  height: 158px;
  overflow: visible;
  filter: drop-shadow(0 16px 22px rgba(26, 39, 31, .18));
}

.motif-find { fill: var(--sky); }
.motif-rooted { fill: var(--sage); }
.motif-grow { fill: #7d9d86; }
.motif-mission {
  fill: var(--ink);
  stroke: var(--bone);
  stroke-width: 2;
}

.home-pathway-grid .pathway-card {
  position: relative;
  overflow: hidden;
  border-top-width: 0;
  isolation: isolate;
}

.home-pathway-grid .pathway-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--pathway-accent);
}

.pathway-find { --pathway-accent: var(--sky); }
.pathway-rooted { --pathway-accent: var(--sage); }
.pathway-grow { --pathway-accent: #7d9d86; }
.pathway-mission { --pathway-accent: var(--ink); }

.home-pathway-grid .pathway-card .home-pathway-icon {
  width: 58px;
  height: 58px;
  border-radius: 30px 4px 30px 4px;
  background: var(--pathway-accent);
  color: #fff;
  transition: transform .2s ease, border-radius .2s ease;
}

.home-pathway-grid .pathway-card:hover .home-pathway-icon {
  transform: rotate(-3deg) scale(1.04);
  border-radius: 34px 4px 34px 4px;
}

.home-pathway-grid .home-pathway-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.home-pathway-grid .pathway-mission .home-pathway-icon {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(240, 236, 233, .72);
}

.home-pathway-grid .pathway-card small {
  color: var(--pathway-accent);
}

.home-pathway-grid .pathway-mission small {
  color: var(--bone);
}

.discover-grid article {
  --discover-accent: var(--olive);
  border-top-color: var(--discover-accent);
}

.discover-grid .discover-find { --discover-accent: var(--sky); }
.discover-grid .discover-rooted { --discover-accent: var(--sage); }
.discover-grid .discover-grow { --discover-accent: #7d9d86; }
.discover-grid .discover-mission { --discover-accent: var(--ink); }

.discover-grid .discover-icon {
  width: 60px;
  height: 60px;
  border-radius: 32px 4px 32px 4px;
  background: var(--discover-accent);
}

.discover-grid .discover-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.discover-grid .discover-mission .discover-icon {
  box-shadow: inset 0 0 0 1px rgba(240, 236, 233, .9);
}

.discover-grid .discover-number,
.discover-grid .discover-question {
  color: var(--discover-accent);
}

/* A compact pathway marker beside the larger pathway phrase on each hub. */
body:has(#gospel) .hub-hero > div:first-child > .eyebrow:first-child,
body:has(#connect) .hub-hero > div:first-child > .eyebrow:first-child,
.rooted-hero > .eyebrow:first-child,
.missions-page .finder-hero > div:first-child > .eyebrow:first-child {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 13px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.15;
  letter-spacing: 1.45px;
}

body:has(#gospel) .hub-hero > div:first-child > .eyebrow:first-child::before,
body:has(#connect) .hub-hero > div:first-child > .eyebrow:first-child::before,
.rooted-hero > .eyebrow:first-child::before,
.missions-page .finder-hero > div:first-child > .eyebrow:first-child::before {
  content: "";
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 21px 3px 21px 3px;
  background-color: var(--pathway-page-accent);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
}

body:has(#gospel) .hub-hero > div:first-child > .eyebrow:first-child {
  --pathway-page-accent: var(--sky);
}

body:has(#gospel) .hub-hero > div:first-child > .eyebrow:first-child::before {
  background-image: url('assets/pathway-icon-cross.png');
}

.rooted-hero > .eyebrow:first-child {
  --pathway-page-accent: var(--sage);
}

.rooted-hero > .eyebrow:first-child::before {
  background-image: url('assets/pathway-icon-sprout.png');
}

body:has(#connect) .hub-hero > div:first-child > .eyebrow:first-child {
  --pathway-page-accent: #7d9d86;
}

body:has(#connect) .hub-hero > div:first-child > .eyebrow:first-child::before {
  background-image: url('assets/pathway-icon-people.png');
}

.missions-page .finder-hero > div:first-child > .eyebrow:first-child {
  --pathway-page-accent: var(--ink);
}

.missions-page .finder-hero > div:first-child > .eyebrow:first-child::before {
  background-image: url('assets/pathway-icon-globe.png');
  box-shadow: inset 0 0 0 1px rgba(240, 236, 233, .9);
}

/* Small, consistent pathway markers in the monthly Together navigation. */
.pathway-jump a::before {
  content: "";
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 21px 3px 21px 3px;
  background-color: var(--jump-accent);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
}

.pathway-jump a:nth-child(1) { --jump-accent: var(--sky); }
.pathway-jump a:nth-child(2) { --jump-accent: var(--sage); }
.pathway-jump a:nth-child(3) { --jump-accent: #7d9d86; }
.pathway-jump a:nth-child(4) { --jump-accent: var(--ink); }
.pathway-jump a:nth-child(1)::before { background-image: url('assets/pathway-icon-cross.png'); }
.pathway-jump a:nth-child(2)::before { background-image: url('assets/pathway-icon-sprout.png'); }
.pathway-jump a:nth-child(3)::before { background-image: url('assets/pathway-icon-people.png'); }
.pathway-jump a:nth-child(4)::before {
  background-image: url('assets/pathway-icon-globe.png');
  box-shadow: inset 0 0 0 1px rgba(240, 236, 233, .9);
}

@media (max-width: 1180px) {
  .home-pathway-title {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pathway-motif {
    width: 132px;
    height: 132px;
  }
}

@media (max-width: 640px) {
  .home-pathway-title {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 14px;
    align-items: center;
  }

  .pathway-motif {
    width: 92px;
    height: 92px;
  }
}
