/* Blog detail page */

.blog-detail__panel {
  background: var(--color-secondary);
  padding: var(--space-10) 0 var(--space-12);
}

.blog-detail__body {
  padding: var(--space-12) 0 var(--space-20);
}

.blog-detail__container {
  max-width: 67.5rem;
}

/* Back link */
.blog-detail__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: var(--space-8);
  transition: color var(--transition-fast);
}

.blog-detail__back:hover {
  color: var(--color-primary);
}

/* Title */
/* Scoped to __hero to out-specify the global `h1:not(.hero__title)` rule. */
.blog-detail__hero .blog-detail__title {
  font-family: var(--font-heading);
  /* ~30% smaller for kennisbank + succesverhalen article titles (client request). */
  font-size: calc(var(--text-3xl) * 0.7);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  line-height: var(--leading-tight);
  margin-bottom: 0;
  max-width: 52rem;
}

/* Hero row — title (left) + image (right). Center the title against the
   taller image so short titles sit mid-height instead of pinned to the top. */
.blog-detail__hero {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .blog-detail__hero {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.4fr);
    gap: var(--space-12);
  }
}

.blog-detail__hero--no-image {
  display: block;
  margin-bottom: 0;
}

/* Intro — bold lead at the top of the article body, above the quote */
.blog-detail__intro {
  font-size: var(--text-md);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-relaxed);
  color: var(--color-primary);
  margin: 0 0 var(--space-6);
}

/* Featured image */
.blog-detail__media {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-detail__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Pull quote */
/* stripe styling lives in utilities.css (shared quote style) */

.blog-detail__quote-text {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  font-style: normal;
  line-height: var(--leading-relaxed);
  color: var(--heading-color);
  margin: 0;
}

.blog-detail__quote-attribution {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
}

.blog-detail__quote-attribution::before {
  content: '— ';
}

/* Content blocks */
.blog-detail__blocks {
  max-width: 100%;
}

.blog-detail__block {
  margin-bottom: var(--space-10);
}

.blog-detail__block:last-child {
  margin-bottom: 0;
}

.blog-detail__block-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  margin-bottom: var(--space-4);
}

.blog-detail__block-body {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-relaxed);
  color: var(--text-color);
  margin: 0;
}

/* Prose — scoped markdown content */
.blog-detail__prose {
  max-width: 100%;
}

.blog-detail__prose h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  line-height: var(--leading-snug);
  margin: var(--space-10) 0 var(--space-4);
}

.blog-detail__prose h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  line-height: var(--leading-snug);
  margin: var(--space-8) 0 var(--space-3);
}

.blog-detail__prose p {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-relaxed);
  color: var(--text-color);
  margin: 0 0 var(--space-5);
}

.blog-detail__prose ul,
.blog-detail__prose ol {
  padding-left: var(--space-6);
  margin: 0 0 var(--space-5);
}

.blog-detail__prose li {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-relaxed);
  color: var(--text-color);
  margin-bottom: var(--space-2);
}

.blog-detail__prose strong {
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
}

.blog-detail__prose em {
  font-style: italic;
}

.blog-detail__prose a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}

.blog-detail__prose a:hover {
  color: var(--color-primary-light);
}
