/* ── Card (mobile base) ─────────────────────────────────────────────────── */
.section-rm-personas__deck {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-rm-personas__card {
  position: sticky;
  top: var(--space-rm-sticky-top, 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 20 */
  padding: 1.5rem; /* 24 */
  border-radius: 1.5625rem; /* 25 */
  color: var(--color-white);
}

.section-rm-personas__card--navy {
  --color-rm-accent: var(--color-green-light);

  background-color: var(--color-navy);
}

.section-rm-personas__card--green {
  --color-rm-accent: var(--color-yellow);

  background-color: var(--color-green);
}

.section-rm-personas__card--cream {
  --color-rm-accent: var(--color-green);

  background-color: var(--color-cream);
  color: var(--color-navy-dark);
}

.section-rm-personas__tag {
  margin: 0;
  color: var(--color-rm-accent);
  font-size: 1.125rem; /* 18 */
  line-height: 1.4375rem; /* 23 */
  letter-spacing: -0.016em;
}

.section-rm-personas__heading {
  margin: 0;
  transition: opacity 0.2s linear;
  font-size: 1.875rem; /* 30 */
  line-height: 2.0625rem; /* 33 */
  letter-spacing: -0.016em;
}

.section-rm-personas__accent {
  color: var(--color-rm-accent);
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: -0.019em;
}

.section-rm-personas__br {
  display: none;
}

.section-rm-personas__bottom {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* 32 */
  margin-top: 0.75rem; /* 20 gap + 12 = 32 below the heading */
}

/* Key benefits (card 1) */
.section-rm-personas__benefits-title {
  margin: 0 0 0.875rem;
  color: var(--color-rm-accent);
  font-size: 1.375rem; /* 22 */
  line-height: 1.5625rem; /* 25 */
  letter-spacing: -0.016em;
}

.section-rm-personas__benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem; /* 14 */
  font-size: 1.125rem; /* 18 */
  line-height: 1.4375rem; /* 23 */
  letter-spacing: -0.016em;
}

.section-rm-personas__benefits-list li {
  position: relative;
  padding-left: 2.1875rem; /* as the bullets */
}

/* 10x10 plus: two 4px bars in the accent colour */
.section-rm-personas__benefits-list li::before {
  content: "";
  position: absolute;
  top: 0.375rem;
  left: 0;
  width: 0.625rem; /* 10 */
  height: 0.625rem;
  background:
    linear-gradient(var(--color-rm-accent), var(--color-rm-accent)) center / 40% 100% no-repeat,
    linear-gradient(var(--color-rm-accent), var(--color-rm-accent)) center / 100% 40% no-repeat;
}

.section-rm-personas__list {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* 32 */
  font-size: 1.125rem; /* 18 */
  line-height: 1.4375rem; /* 23 */
  letter-spacing: -0.016em;
}

.section-rm-personas__list li {
  position: relative;
  padding-left: 2.1875rem; /* 9 + 26 */
}

.section-rm-personas__list li::before {
  content: "";
  position: absolute;
  top: 0.625rem; /* 10 */
  left: 0;
  width: 0.5625rem; /* 9 */
  height: 0.5625rem;
  background-color: var(--color-rm-accent);
}

.section-rm-personas__summary {
  margin: 0;
  font-size: 1.375rem; /* 22 */
  font-weight: 600;
  line-height: 1.5625rem; /* 25 */
  letter-spacing: -0.016em;
}

/* ── Desktop: Figma 1300x900 card, every value a ratio of --space-rm-card-w ─────────── */
@media (width >= 64rem) {
  .section-rm-personas {
    /* Figma: cards at x70 — 70px (4.375rem) each side; the card is the rest. */
    --space-rm-card-w: calc(100vw - 8.75rem);
    --space-rm-card-h: calc(var(--space-rm-card-w) * 0.692308); /* 900 */
  }

  .section-rm-personas__deck {
    width: var(--space-rm-card-w);
    max-width: none;
    gap: 2rem;
    padding-inline: 0;
  }

  .section-rm-personas__card {
    height: var(--space-rm-card-h);
    gap: 0;
    padding: calc(var(--space-rm-card-w) * 0.034231) calc(var(--space-rm-card-w) * 0.054615)
      calc(var(--space-rm-card-w) * 0.056923) calc(var(--space-rm-card-w) * 0.066923); /* 44.5 / 71 / 74 / 87 */
    border-radius: calc(var(--space-rm-card-w) * 0.038462); /* 50 */
  }

  .section-rm-personas__tag {
    margin-left: calc(var(--space-rm-card-w) * 0.003846); /* tag sits at x92 */
    font-size: calc(var(--space-rm-card-w) * 0.019231); /* 25 */
    line-height: calc(var(--space-rm-card-w) * 0.043846); /* 57 */
    letter-spacing: -0.024em;
  }

  .section-rm-personas__heading {
    margin-top: calc(var(--space-rm-card-w) * 0.015); /* heading top at y121 */
    font-size: calc(var(--space-rm-card-w) * 0.061538); /* 80 */
    line-height: calc(var(--space-rm-card-w) * 0.057692); /* 75 */
    letter-spacing: -0.024em;
  }

  .section-rm-personas__accent {
    font-size: calc(var(--space-rm-card-w) * 0.05); /* 65 */
  }

  /* Figma places "Aligned" at x387, 8 further right than a word space */
  .section-rm-personas__card--cream .section-rm-personas__accent {
    margin-left: calc(var(--space-rm-card-w) * 0.006154); /* 8 */
  }

  .section-rm-personas__br {
    display: inline;
  }

  /* Figma heading text-box widths, per card */
  .section-rm-personas__card--navy .section-rm-personas__heading {
    max-width: calc(var(--space-rm-card-w) * 0.806154); /* 1048 */
  }

  .section-rm-personas__card--green .section-rm-personas__heading {
    max-width: calc(var(--space-rm-card-w) * 0.600769); /* 781 */
  }

  .section-rm-personas__card--cream .section-rm-personas__heading {
    max-width: calc(var(--space-rm-card-w) * 0.543846); /* 707 */
  }

  /* Bottom row: summary (x87, w500 column) | bullets (square x689, text x719 w510) */
  .section-rm-personas__bottom {
    display: grid;
    grid-template-columns: calc(var(--space-rm-card-w) * 0.384615) 1fr;
    align-items: end;
    column-gap: calc(var(--space-rm-card-w) * 0.078462); /* 102 */
    margin-top: auto;
  }

  /* Card 1: key benefits 66 below the heading (y337), above the summary;
     the bullets span both rows and stay bottom-aligned. */
  .section-rm-personas__bottom--benefits {
    flex: 1 0 0;
    grid-template-rows: auto 1fr;
    margin-top: calc(var(--space-rm-card-w) * 0.050769); /* 66 */
  }

  .section-rm-personas__benefits {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
    width: calc(var(--space-rm-card-w) * 0.407692); /* 30 + 500 */
    margin-left: calc(var(--space-rm-card-w) * 0.003846); /* x92 */
  }

  .section-rm-personas__benefits-title {
    margin-bottom: calc(var(--space-rm-card-w) * 0.013846); /* 18 */
    font-size: calc(var(--space-rm-card-w) * 0.02); /* 26 */
    line-height: calc(var(--space-rm-card-w) * 0.026154); /* 34 */
  }

  .section-rm-personas__benefits-list {
    gap: calc(var(--space-rm-card-w) * 0.007692); /* 10 */
    font-size: calc(var(--space-rm-card-w) * 0.015385); /* 20 */
    line-height: calc(var(--space-rm-card-w) * 0.019231); /* 25 */
  }

  .section-rm-personas__benefits-list li {
    padding-left: calc(var(--space-rm-card-w) * 0.023077); /* 30 */
  }

  .section-rm-personas__benefits-list li::before {
    top: calc(var(--space-rm-card-w) * 0.005385); /* 7 */
    width: calc(var(--space-rm-card-w) * 0.007692); /* 10 */
    height: calc(var(--space-rm-card-w) * 0.007692);
  }

  .section-rm-personas__summary {
    grid-row: 1;
    grid-column: 1;
    font-size: calc(var(--space-rm-card-w) * 0.023077); /* 30 */
    font-weight: 700;
    line-height: calc(var(--space-rm-card-w) * 0.025385); /* 33 */
  }

  .section-rm-personas__bottom--benefits .section-rm-personas__summary {
    grid-row: 2;
  }

  /* Figma summary text-box widths, per card */
  .section-rm-personas__card--navy .section-rm-personas__summary {
    max-width: calc(var(--space-rm-card-w) * 0.35); /* 455 */
    margin-left: calc(var(--space-rm-card-w) * 0.003846); /* x92 */
  }

  .section-rm-personas__card--green .section-rm-personas__summary {
    max-width: calc(var(--space-rm-card-w) * 0.386923); /* 503 */
  }

  .section-rm-personas__card--cream .section-rm-personas__summary {
    max-width: calc(var(--space-rm-card-w) * 0.363846); /* 473 */
  }

  .section-rm-personas__list {
    grid-row: 1;
    grid-column: 2;
    gap: calc(var(--space-rm-card-w) * 0.023077); /* 30 */
    font-size: calc(var(--space-rm-card-w) * 0.016923); /* 22 */
    line-height: calc(var(--space-rm-card-w) * 0.023077); /* 30 */
  }

  .section-rm-personas__bottom--benefits .section-rm-personas__list {
    grid-row: 1 / span 2;
  }

  .section-rm-personas__list li {
    padding-left: calc(var(--space-rm-card-w) * 0.023077); /* 9 + 21 */
  }

  .section-rm-personas__list li::before {
    top: calc(var(--space-rm-card-w) * 0.008462); /* 11 */
    width: calc(var(--space-rm-card-w) * 0.006923); /* 9 */
    height: calc(var(--space-rm-card-w) * 0.006923);
  }
}

/* A covered card shows only its tag band (Figma's stacked deck). The
   heading starts at y121, at the band edge (123/126), so once the next card
   has docked over it the heading is faded out. personas.html toggles the
   class; nothing else on the card ever hides. */
.section-rm-personas__card.is-covered .section-rm-personas__heading {
  opacity: 0;
}
