/**
 * Reusable "Field Notes" style blog post components.
 * Scoped to .post-content-description so it only affects post body content.
 * Paste matching class names into the post editor (Custom HTML / Classic block).
 *
 * @package Kadence Child
 */

.author-meta__sep {
  margin: 0 0.4rem;
  color: var(--muted-foreground, oklch(0.5 0 0));
}

.author-meta__readtime,
.author-meta__category {
  font-size: 0.875rem;
  color: var(--muted-foreground, oklch(0.5 0 0));
}

.post-content-description {
  --pc-primary: var(--primary, oklch(0.38 0.08 180));
  --pc-foreground: var(--foreground, oklch(0.15 0 0));
  --pc-muted: var(--muted-foreground, oklch(0.5 0 0));
  --pc-border: var(--border, oklch(0.88 0 0));
  --pc-card: var(--card, oklch(1 0 0));
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--pc-foreground);
}

.post-content-description h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.post-content-description h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.post-content-description p {
  margin: 0 0 1.25rem;
}

/* Stat grid */
.post-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--pc-border);
  border: 1px solid var(--pc-border);
  border-radius: 0.75rem;
  overflow: hidden;
  margin: 2rem 0;
}

.post-stat {
  background: var(--pc-card);
  padding: 1.25rem 1rem;
  text-align: center;
}

.post-stat__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pc-primary);
  line-height: 1.1;
}

.post-stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--pc-muted);
  line-height: 1.35;
}

@media (max-width: 640px) {
  .post-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pull quote */
.post-pullquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--pc-primary);
  background: var(--pc-card);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--pc-foreground);
}

.post-pullquote p {
  margin: 0;
}

.post-pullquote__cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--pc-muted);
}

/* Feature grid (e.g. "Where ScopeMatch fits") */
.post-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.post-feature {
  border: 1px solid var(--pc-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: var(--pc-card);
}

.post-feature__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pc-foreground);
}

.post-feature__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--pc-muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .post-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Sources / footnote */
.post-sources {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pc-border);
  font-size: 0.8125rem;
  color: var(--pc-muted);
}
