/* Explainer — image beside copy. Tokens only, per tokens.css. */

.xpl__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--sp-8);
  align-items: center;
}

/* Source order stays image-then-copy so the copy reads first on a phone; the
   flip is visual only. */
.xpl__grid--flip .xpl__media {
  order: 2;
}

/* A .plx-frame clips to its own box and positions the image absolutely inside
   it, so the frame MUST declare a ratio or it collapses to zero height and the
   image disappears entirely — which is exactly what happened here first time.
   components.css says as much: "Each page declares that ratio on the frame." */
.xpl__media.plx-frame {
  aspect-ratio: 4 / 5;
}

.xpl__media {
  margin: 0;
  background: var(--ground-sunken);
}

/* ---- copy ---------------------------------------------------------------
   Element rules first, flow rule last. The other way round, `.xpl__p {
   margin: 0 }` wins on source order against `.xpl__copy > * + *` — same
   specificity — and every paragraph runs into the next. */

.xpl__h {
  margin: 0;
}

.xpl__p {
  max-width: var(--measure);
}

.xpl__term {
  padding-left: var(--sp-5);
  border-left: 1px solid var(--gold-line);
}

.xpl__term dt {
  text-transform: uppercase;
}

.xpl__term dd {
  margin: var(--sp-2) 0 0;
  max-width: var(--measure);
  line-height: var(--leading-body);
}

.xpl__copy > * {
  margin-bottom: 0;
}

.xpl__copy > * + * {
  margin-top: var(--sp-5);
}

@media (max-width: 60rem) {
  .xpl__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }

  .xpl__grid--flip .xpl__media {
    order: 0;
  }

  .xpl__media.plx-frame {
    aspect-ratio: 3 / 2;
  }
}
