﻿/* Only the five homepage destination cards; preserve the surrounding sections. */
#explore.pathways {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100vw - 40px));
  padding: 28px 0;
  align-items: stretch;
}
#explore.pathways > .path:nth-child(n) {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fcfbf8;
  text-decoration: none;
  overflow: hidden;
}
#explore .path-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  flex-shrink: 0;
}
#explore .path-content {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 18px 20px 20px;
  overflow-wrap: break-word;
}
#explore .path-content h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  line-height: 1.15;
}
#explore .path-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
#explore.pathways > .path:hover {
  border-color: var(--olive);
}
#explore.pathways > .path:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 4px;
}
/* Half-card tracks centre the final card without changing its size. */
@media (min-width: 560px) {
  #explore.pathways {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(1200px, calc(100vw - 48px));
  }
  #explore.pathways > .path:nth-child(n) {
    grid-column: span 2;
  }
  #explore.pathways > .path:last-child {
    grid-column: 2 / span 2;
  }
}
/* Five equal destination cards in one row, as in the homepage reference. */
@media (min-width: 1024px) {
  #explore.pathways {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }
  #explore.pathways > .path:nth-child(n) {
    grid-column: auto;
  }
  #explore .path-content {
    padding: 16px 16px 20px;
  }
  #explore .path-content h3 {
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  #explore.pathways > .path {
    transition: none;
  }
  #explore.pathways > .path:hover {
    transform: none;
  }
}
