/* ============================================================
   Treatment Infographic — optional band rendered right after
   "What it is" (Section 03). Renders only when a treatment's
   data object includes an `infographic` field, so pages without
   one are unaffected. Three display variants share this sheet:
     · journey  — numbered horizontal process flow
     · supports — labelled tile grid ("what it can support")
     · figure   — explanatory copy + designed-asset slot
   Tokens come from site.css (--c-*, --font-*, --ease-out).
   ============================================================ */

.t-ig {
  background: var(--c-mint);
  padding: 96px 0;
}
@media (max-width: 767px) {
  .t-ig { padding: 64px 0; }
}
.t-ig-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 767px) {
  .t-ig-inner { padding: 0 24px; }
}

.t-ig-head {
  max-width: 60ch;
  margin: 0 0 56px;
}
.t-ig-head .h2 { margin-top: 12px; }
.t-ig-intro {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-slate);
  max-width: 60ch;
}
@media (max-width: 767px) {
  .t-ig-head { margin-bottom: 36px; }
}

/* ---------- Variant: journey (process flow) ---------- */
.t-ig-flow {
  display: grid;
  grid-template-columns: repeat(var(--ig-cols, 4), 1fr);
  gap: 32px;
  position: relative;
}
/* Hairline connecting the step markers (desktop only). */
.t-ig-flow::before {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(100% / var(--ig-cols, 4) / 2);
  right: calc(100% / var(--ig-cols, 4) / 2);
  height: 1px;
  background: var(--c-aqua);
  opacity: 0.55;
  z-index: 0;
}
.t-ig-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.t-ig-marker {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--c-deep);
  color: var(--c-ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 0 0 8px var(--c-mint);
  margin-bottom: 20px;
}
.t-ig-step-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--c-ink);
  margin: 0 0 8px;
}
.t-ig-step-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-slate);
  margin: 0;
  max-width: 32ch;
}
@media (max-width: 900px) {
  .t-ig-flow {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .t-ig-flow::before { display: none; }
}
@media (max-width: 560px) {
  .t-ig-flow { grid-template-columns: 1fr; gap: 28px; }
  .t-ig-step { flex-direction: row; gap: 18px; align-items: flex-start; }
  .t-ig-marker {
    width: 44px; height: 44px; font-size: 17px;
    margin-bottom: 0; flex-shrink: 0; box-shadow: none;
  }
}

/* ---------- Variant: supports (tile grid) ---------- */
.t-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.t-ig-tile {
  background: var(--c-ivory);
  border: 1px solid var(--c-stone);
  border-radius: 10px;
  padding: 26px 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition: border-color var(--d-hover, 220ms) var(--ease-out),
              transform var(--d-hover, 220ms) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .t-ig-tile:hover {
    border-color: var(--c-aqua);
    transform: translateY(-2px);
  }
}
.t-ig-tile-num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-aqua);
  line-height: 1;
  flex-shrink: 0;
}
.t-ig-tile-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--c-deep);
}
@media (max-width: 767px) {
  .t-ig-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .t-ig-tile { padding: 20px 18px; }
  .t-ig-tile-label { font-size: 16px; }
}

/* ---------- Variant: figure (copy + asset slot) ---------- */
.t-ig-figure {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.t-ig-figure-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  margin: 0 0 18px;
  max-width: 46ch;
}
.t-ig-figure-copy p:last-child { margin-bottom: 0; }
.t-ig-figure-media .placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 10px;
}
.t-ig-figure-cap {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-slate);
}
@media (max-width: 900px) {
  .t-ig-figure { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Footnote (shared) ---------- */
.t-ig-footnote {
  margin: 44px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-slate);
  max-width: 80ch;
}


/* ---------- Journey steps with a photo ----------
   A round photo per step, the number as a badge on its rim. The
   hairline between markers is hidden for photo rows; the photos
   carry the sequence on their own. */
.t-ig-flow:has(.t-ig-step--photo)::before { display: none; }
.t-ig-step--photo { align-items: flex-start; }
.t-ig-photo {
  position: relative;
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin-bottom: 20px;
  border-radius: 50%;
  overflow: visible;
}
.t-ig-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--e-md);
  transform: scale(1.03);
  transition: transform 900ms var(--ease-out);
}
.t-ig-step--photo.in .t-ig-photo img { transform: none; }
.t-ig-step--photo .t-ig-marker {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 48px;
  height: 48px;
  margin: 0;
  font-size: 18px;
  box-shadow: 0 0 0 5px var(--c-mint);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--d-enter) var(--ease-out) 260ms, transform 420ms var(--ease-out) 260ms;
}
.t-ig-step--photo.in .t-ig-marker { opacity: 1; transform: none; }
.t-ig-step--photo .t-ig-step-title { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--c-deep); }
@media (hover: hover) and (pointer: fine) {
  .t-ig-step--photo:hover .t-ig-photo img { transform: scale(1.04); }
}
@media (max-width: 560px) {
  .t-ig-step--photo { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .t-ig-step--photo .t-ig-photo { width: 112px; margin-bottom: 0; grid-row: 1 / span 2; }
  .t-ig-step--photo .t-ig-step-title { grid-column: 2; font-size: 21px; margin-top: 4px; }
  .t-ig-step--photo .t-ig-step-body { grid-column: 2; max-width: none; }
  .t-ig-step--photo .t-ig-marker { width: 34px; height: 34px; font-size: 13px; right: 0; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .t-ig-photo img, .t-ig-step--photo .t-ig-marker { transition: none; transform: none; opacity: 1; }
}
