/* ============================================================
   STHERB — Pueraria Mirifica sub-articles (self-contained family folder)
   Loads on top of homepage-redesign.css + blog-redesign.css +
   blog-article-redesign.css (hero/layout/sidebar/disclaimer/CTA
   come from there) + breast-guide-redesign.css (Key Takeaways callout)
   + faq-redesign.css/js (FAQ accordion). This file only adds what those
   don't already cover: media placeholders, the inline-image frame, the
   Kwao Krua variety comparison list, and the sidebar "More in this
   guide" link list. Kept separate from breast-guide-articles/ per user
   request to keep each guide family self-contained in its own folder.
   ============================================================ */

/* ---------- Media frames (real photo + placeholder variant) ---------- */
.art-inline-media {
  margin: 8px 0 28px;
  border-radius: 16px;
  overflow: hidden;
}
.art-inline-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.art-inline-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.art-media-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: var(--soft);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.art-media-ph .art-media-ph-icon { font-size: 40px; line-height: 1; opacity: 0.7; }
.art-hero-media.art-media-ph { aspect-ratio: 16 / 7; border-radius: 20px; }
.art-inline-media.art-media-ph { aspect-ratio: 16 / 9; border-radius: 16px; }

/* ---------- Kwao Krua variety comparison list ---------- */
.pmp-kwao-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 28px;
  list-style: none;
  padding: 0;
}
.pmp-kwao-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.pmp-kwao-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.pmp-kwao-row strong { display: block; margin-bottom: 4px; color: var(--ink); }
.pmp-kwao-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Sidebar: More in this guide ---------- */
.art-related-links {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
}
.art-related-links ul { list-style: none; margin: 0; padding: 0; }
.art-related-links li { margin: 0; }
.art-related-links a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
}
.art-related-links li:last-child a { border-bottom: none; }
.art-related-links a:hover { color: var(--accent); }

/* ---------- Composition: compound table ---------- */
.pma-compound-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14.5px;
}
.pma-compound-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
}
.pma-compound-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  vertical-align: top;
}
.pma-compound-table td:last-child { color: var(--muted); }

/* ---------- Body section spacing (sections built manually, not via
   the_content) ---------- */
.art-body h2:first-child { margin-top: 0; }
.art-body .sr-bg-callout { margin-top: 0; }

/* ---------- History: milestone timeline ---------- */
.pma-milestone-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 28px;
  list-style: none;
  padding: 0;
}
.pma-milestone-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.pma-milestone-year {
  flex: 0 0 auto;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.pma-milestone-card strong { display: block; margin-bottom: 4px; color: var(--ink); }
.pma-milestone-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pma-milestone-year.pma-milestone-num {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
}

/* ---------- Research: 4-stat grid ---------- */
.pma-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}
.pma-stats-grid .pma-milestone-card {
  flex-direction: column;
  text-align: center;
  gap: 6px;
}
.pma-stats-grid .pma-milestone-card strong { font-size: 22px; }
.pma-stats-grid .pma-milestone-card p { margin: 0; font-size: 13px; }

@media (max-width: 640px) {
  .art-hero-media.art-media-ph { aspect-ratio: 4 / 3; }
  .pma-milestone-card { flex-direction: column; gap: 8px; }
  .pma-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
