/* Herald content components. Minimal, theme-agnostic styling for the markup
 * emitted by includes/shortcodes.php. Scoped to .herald-* classes so it does not
 * fight the active theme. */

.herald-callout {
  border-left: 4px solid #6b7280;
  background: #f7f8fa;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}
.herald-callout__title {
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.herald-callout--tip { border-left-color: #16a34a; background: #f0fdf4; }
.herald-callout--info { border-left-color: #2563eb; background: #eff6ff; }
.herald-callout--warn { border-left-color: #d97706; background: #fffbeb; }
.herald-callout--note { border-left-color: #6b7280; }

.herald-figure { margin: 1.5rem 0; }
.herald-figure img { max-width: 100%; height: auto; border-radius: 4px; }
.herald-figure__caption { font-size: 0.875rem; color: #6b7280; margin-top: 0.5rem; }

.herald-card-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
.herald-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.herald-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.herald-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  .herald-card-grid { grid-template-columns: 1fr; }
}
.herald-card {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
}
.herald-card--link { text-decoration: none; color: inherit; }
.herald-card--link:hover { border-color: #2563eb; }
.herald-card__title { font-weight: 600; margin: 0 0 0.25rem; }

.herald-key-takeaway {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 6px;
}
.herald-key-takeaway__title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  color: #4338ca;
  margin: 0 0 0.5rem;
}

.herald-statistic {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-left: 4px solid #2563eb;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
}
.herald-statistic__value { font-size: 2rem; font-weight: 700; line-height: 1; }
.herald-statistic__label { color: #374151; }
.herald-statistic__source { font-size: 0.8125rem; color: #6b7280; }

.herald-expert-quote {
  border-left: 4px solid #111827;
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
}
.herald-expert-quote__cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.875rem;
  color: #6b7280;
}

.herald-citation { font-size: 0.9em; color: #4b5563; }

.herald-question-heading { margin-top: 2rem; }

.herald-faq { margin: 1.5rem 0; }
.herald-faq__item {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
}
.herald-faq__q { font-weight: 600; cursor: pointer; }
.herald-faq__a { margin-top: 0.5rem; color: #374151; }

.herald-comparison { margin: 1.5rem 0; overflow-x: auto; }
.herald-comparison__table {
  width: 100%;
  border-collapse: collapse;
}
.herald-comparison__table th,
.herald-comparison__table td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.herald-comparison__table thead th { background: #f7f8fa; }
.herald-comparison__table tbody th[scope="row"] { background: #fafafa; font-weight: 600; }
.herald-comparison__caption { font-size: 0.875rem; color: #6b7280; margin-top: 0.5rem; }

.herald-cta { margin: 2rem 0; }

.herald-cta-button {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  margin: 1rem 0;
}
.herald-cta-button--primary { background: #2563eb; color: #fff; }
.herald-cta-button--primary:hover { background: #1d4ed8; }
.herald-cta-button--secondary {
  background: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
}
.herald-cta-button--secondary:hover { background: #eff6ff; }

.herald-embed { margin: 1.5rem 0; }
.herald-embed iframe { max-width: 100%; }

.herald-section { margin: 2rem 0; }
.herald-section__title { margin: 0 0 0.75rem; }

.herald-columns { display: grid; gap: 1rem; margin: 1.5rem 0; }
.herald-columns--2 { grid-template-columns: repeat(2, 1fr); }
.herald-columns--3 { grid-template-columns: repeat(3, 1fr); }
.herald-columns--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  .herald-columns { grid-template-columns: 1fr; }
}

/* Carousel: native CSS scroll-snap, no JS. */
.herald-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  padding-bottom: 0.5rem;
}
.herald-slide {
  flex: 0 0 80%;
  scroll-snap-align: start;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
}
@media (min-width: 640px) { .herald-slide { flex-basis: 45%; } }
@media (min-width: 1024px) { .herald-slide { flex-basis: 30%; } }
