/* =====================================================================
   Article: AI for Wellness (/articles/ai-for-wellness/)
   .aiw-* extras layered on top of the shared .gh-* post layer
   (css/article-gut-health.css). Tokens only — see css/tokens.css.
   ===================================================================== */

/* ---------- Graphics: natural aspect ratio, never cropped ----------
   Unlike .gh-figure (which forces the gut infographic's 1080x1350 /
   1600x1200 compositions), these keep each JPG's own proportions so the
   text inside them stays fully visible. */
/* All three graphics share one width: 820px, ~14% wider than the 720px reading
   column (820 / 720); fluid below that. */
.aiw-figure {
  max-width: 820px;
  margin: clamp(30px, 4.5vw, 48px) auto;
}
/* Optional title above a graphic (h3 so it sits under its section's h2).
   Selector outranks .gh-article h3's subsection margins. */
.gh-article .aiw-figure__title {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
.aiw-figure__link {
  display: block;
  border-radius: var(--r-card-md);
}
.aiw-figure__link:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
.aiw-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-card-md);
  border: 1px solid var(--hairline-soft);
  box-shadow: var(--shadow-card-soft);
  background: var(--cream-bright);
}
.aiw-figure figcaption {
  margin-top: 12px;
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--body);
  text-align: center;
}
/* "Tap to enlarge" hint (the figcaption) only matters where the graphic renders small */
.aiw-figure__zoom { display: none; }
@media (max-width: 760px) {
  .aiw-figure__zoom { display: block; }
}


/* ---------- Prompt cards with Copy buttons (js/aiw-copy.js) ---------- */
.aiw-prompt {
  margin: 0 0 22px;
  padding: clamp(16px, 2.5vw, 20px) clamp(18px, 3vw, 24px);
  border: 1px solid var(--hairline-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-card-sm);
  background: var(--cream-bright);
  box-shadow: var(--shadow-card-soft);
}
.aiw-prompt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.aiw-prompt__label {
  margin: 0;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
/* The prompt itself. Quote marks are generated, so textContent (what the Copy
   button copies) is exactly the prompt wording. */
.aiw-prompt__text {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  quotes: "\201C" "\201D";
}
.aiw-prompt__text::before { content: open-quote; }
.aiw-prompt__text::after  { content: close-quote; }
.aiw-prompt__note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hairline-soft);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--body);
}

.aiw-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 44px;            /* touch target */
  padding: 0 18px;
  border: 1px solid var(--hairline-mid);
  border-radius: var(--r-pill);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--fs-ui);
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--hover-fast), border-color var(--hover-fast), background var(--hover-fast);
}
.aiw-copy:hover {
  color: var(--coral);
  border-color: var(--coral);
}
.aiw-copy:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.aiw-copy.is-copied,
.aiw-copy.is-copied:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--cream-bright);
}
.aiw-copy.is-selected,
.aiw-copy.is-selected:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--cream-bright);
}

/* ---------- Inline workshop invitation (after the Projects diagram) ---------- */
.aiw-invite {
  margin: clamp(4px, 1vw, 10px) 0 clamp(30px, 4.5vw, 44px);
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--coral);
}
.aiw-invite p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--body);
}
.aiw-invite__link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color var(--hover-fast);
}
.aiw-invite__link:hover { color: var(--coral); }

/* ---------- R.E.A.D. steps (page-text version of the infographic) ---------- */
.aiw-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.aiw-steps li {
  margin: 0 0 12px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--body);
}
.aiw-steps strong { color: var(--ink); }

/* ---------- Closing: takeaways ---------- */
.gh-article .aiw-takeaways__title { margin: 30px 0 14px; }
.gh-article .aiw-takeaways { margin-bottom: 8px; }

/* ---------- Registration panel (styled after the immune post's .ih-event) ---------- */
.aiw-cta {
  margin-block: clamp(26px, 4vw, 40px);
  background: var(--cream-bright);
  border: 1px solid var(--hairline-soft);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-card-md);
  padding: clamp(22px, 3.5vw, 32px) clamp(22px, 3.5vw, 34px);
  box-shadow: var(--shadow-card-soft);
}
.aiw-cta__eyebrow {
  margin: 0 0 10px;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
.aiw-cta__price {
  margin: 0 0 18px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
}
.aiw-cta__btn { max-width: 100%; white-space: normal; text-align: center; }
.aiw-cta__alt { margin: 14px 0 0; font-size: var(--fs-small); }
.aiw-cta__bring {
  margin: 14px 0 0;
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--body);
}
