/* ==========================================================
   Nexalytics Tech — MPA layer (color8)
   Styles for the standalone article/page templates that the
   multi-page build generates. Loaded after color5/color7 —
   pure addition, nothing existing is modified.
   ========================================================== */

/* Standalone article & page shells */
.article-page__main,
.page-page__main {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
  min-height: 60vh;
}

.article-page .article-detail,
.page-page .page-detail {
  margin-inline: auto;
}

/* Breadcrumb above articles */
.breadcrumb {
  max-width: 840px;
  margin: 0 auto;
  padding: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted, #8a8f98);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a {
  color: var(--accent, #00c2ff);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Related stories grid */
.related {
  max-width: 840px;
  margin: 3rem auto 0;
}
.related .section-label { margin-bottom: 1.25rem; }
.related__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.related__card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.related__card:hover .card__title { color: var(--accent, #00c2ff); }

@media (min-width: 640px) {
  .related__grid { grid-template-columns: repeat(3, 1fr); }
  .related__card { flex-direction: column; }
  .related__card .card__img--sm {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }
}

/* Card titles that are links (homepage) */
.card__link {
  color: inherit;
  text-decoration: none;
}
.card__link:hover { color: var(--accent, #00c2ff); }

/* CTA rendered as anchor instead of button */
a.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
