/* ==========================================================================
   PATHWAYS CSS: layout for the Pathways index and the eight color pages.
   Cards and buttons match the Directory's look.
   ========================================================================== */

.pathway-wrapper {
  width: 100%;
}

/* Grid layout matching resource-grid from directory */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Pathway Card Matching styleBlock */
.pathway-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  border-left: 6px solid var(--border-strong);
  text-align: left;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pathway-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Each card's title in its color's text shade, so it clears 4.5:1 on
   white. */
.pathway-card[style*="red"] h3 { color: var(--red-text); }
.pathway-card[style*="orange"] h3 { color: var(--orange-text); }
.pathway-card[style*="yellow"] h3 { color: var(--yellow-text); }
.pathway-card[style*="green"] h3 { color: var(--green-text); }
.pathway-card[style*="blue"] h3 { color: var(--blue-text); }
.pathway-card[style*="indigo"] h3 { color: var(--indigo-text); }
.pathway-card[style*="purple"] h3 { color: var(--purple-text); }
.pathway-card[style*="violet"] h3 { color: var(--violet-text); }

.pathway-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.pathway-card h3 a {
  color: inherit;
  text-decoration: none;
}

.pathway-card h3 a:hover {
  color: var(--brand-teal);
}

.pathway-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 1rem 0;
}

/* Standardize ALL pathway buttons to look grey like the Directory */
.pathway-card a[class*="btn-"] {
  display: inline-block;
  width: auto !important;
  padding: 0.45rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-secondary) !important;
  color: var(--text-secondary) !important;
  transition: all 0.15s ease;
}

.pathway-card a[class*="btn-"]:hover {
  background-color: var(--border-color) !important;
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* Individual Color Pathway Page Section styling */
.pathway-section {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.pathway-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.pathway-quote {
  font-style: italic;
  color: var(--brand-teal);
  font-weight: 700;
  margin: 1rem 0;
}

/* Key Words: one line of plain, bold text in the page's color (its text
   shade, via .theme-{color}). Plain text, not pills, because they aren't
   links, and a pill shape would look clickable. The words come from
   core/climate-color.js, filled in by pathways.js. */
.key-words {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

/* Muted subhead under the color name: "The Connector's Path" */
.pathway-subhead {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0.15rem 0 0.75rem 0;
}

/* The wheel at the top of the Pathways index (drawn by core/wheel.js).
   Each wedge opens its pathway page. */
.pathway-wheel {
  max-width: 460px;
  margin: 0 auto 2.5rem;
}

/* Responsive breakpoints */
@media (max-width: 960px) {
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pathway-grid { grid-template-columns: 1fr; }
  .pathway-section { padding: 1.25rem; }
}