/* =========================================================
   Images & figures — pillar styles
   Hero image is styled by [data-content="intro"] rules
   already in <style>; this file handles INLINE figures
   (5 images with figcaption) inside data-content sections.
   ========================================================= */

article figure {
  margin: 2rem auto;
  max-width: var(--content-width, 740px);
  width: 100%;
}

article figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-md, 0 2px 8px rgba(15, 23, 32, 0.06));
  border: 1px solid var(--muted-border, #e2e8f0);
  background: var(--surface-1, #f8fafc);
}

article figure figcaption {
  margin-top: 0.85rem;
  padding: 0 0.25rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary, #475569);
  font-style: normal;
  text-align: left;
  border-left: 3px solid var(--accent, #077bb5);
  padding-left: 0.85rem;
}

/* Hero image: keep design's centered styling but ensure
   no figcaption-related rules accidentally apply. */
[data-content="intro"] figure {
  margin-top: 2rem;
  margin-bottom: 0;
}

[data-content="intro"] figure figcaption {
  display: none;
}

/* Wide content (comparison tables, etc.) parents may
   override — keep figures comfortable inside data-content */
section[data-content] figure {
  max-width: var(--content-width, 740px);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  article figure {
    margin: 1.5rem auto;
  }
  article figure figcaption {
    font-size: 0.86rem;
    padding-left: 0.7rem;
  }
}

@media (max-width: 380px) {
  article figure img {
    border-radius: var(--radius-sm, 6px);
  }
}
