/* v37: the three essay-generator steps. Loaded only on /generator-esejow/. */
body.rf-home-page .pl37-essay-how {
  --pl37-ink: #0b1935;
  --pl37-red: #e20919;
  --pl37-font: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pl37-top-space: clamp(42px, 3.35vw, 58px);
  --pl37-number-width: clamp(52px, 4.9vw, 82px);
  --pl37-number-size: clamp(56px, 5.4vw, 92px);
  --pl37-step-gap: clamp(20px, 2.05vw, 34px);
  --pl37-row-gap: clamp(28px, 2.4vw, 40px);
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--pl37-top-space) 0 clamp(44px, 3.4vw, 60px);
  border: 0;
  background: #fff !important;
  color: var(--pl37-ink);
  font-family: var(--pl37-font);
  text-align: left;
  scroll-margin-top: 112px;
}
.pl37-essay-how,
.pl37-essay-how *,
.pl37-essay-how *::before,
.pl37-essay-how *::after {
  box-sizing: border-box;
}
body.rf-home-page .pl37-essay-how::before,
body.rf-home-page .pl37-essay-how::after {
  content: none;
}
.pl37-essay-how .pl37-how-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.09fr) minmax(0, 0.91fr);
  align-items: start;
  gap: clamp(20px, 1.5vw, 32px);
  width: calc(100% - 112px);
  max-width: 1648px;
  margin: 0 auto;
  padding: 0;
}
.pl37-essay-how .pl37-how-copy,
.pl37-essay-how .pl37-step-copy {
  min-width: 0;
  margin: 0;
  padding: 0;
}
.pl37-essay-how .pl37-how-heading {
  display: block;
  margin: 0 0 clamp(32px, 3.35vw, 56px);
  padding: 0;
  text-align: left;
}
body.rf-home-page .pl37-essay-how .pl37-how-heading h2 {
  display: block;
  width: auto;
  max-width: none;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--pl37-ink) !important;
  background: none !important;
  box-shadow: none !important;
  font-family: var(--pl37-font) !important;
  font-size: clamp(40px, 4.95vw, 86px) !important;
  font-weight: 900 !important;
  line-height: 1.07 !important;
  letter-spacing: -0.045em !important;
  text-align: left !important;
  text-transform: none !important;
  text-decoration: none !important;
}
body.rf-home-page .pl37-essay-how .pl37-how-heading h2 strong {
  display: inline;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  color: var(--pl37-red) !important;
  background: none !important;
  box-shadow: none !important;
  font: inherit !important;
  text-decoration: none !important;
  -webkit-text-fill-color: currentColor;
}
.pl37-essay-how .pl37-how-last-word {
  display: inline-block;
  color: inherit;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}
body.rf-home-page .pl37-essay-how h2::before,
body.rf-home-page .pl37-essay-how h2::after,
body.rf-home-page .pl37-essay-how h2 strong::before,
body.rf-home-page .pl37-essay-how h2 strong::after,
body.rf-home-page .pl37-essay-how h3::before,
body.rf-home-page .pl37-essay-how h3::after {
  display: none !important;
  content: none !important;
}
.pl37-essay-how .pl37-how-heading p,
.pl37-essay-how .pl37-step-copy p {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--pl37-ink);
  font-family: var(--pl37-font);
  font-size: clamp(19px, 1.9vw, 32px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.025em;
  text-align: left;
  overflow-wrap: break-word;
}
.pl37-essay-how .pl37-how-heading p {
  font-size: clamp(21px, 2.12vw, 36px);
  line-height: 1.35;
}
.pl37-essay-how .pl37-how-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pl37-row-gap);
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.pl37-essay-how .pl37-how-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--pl37-number-width) minmax(0, 1fr);
  align-items: start;
  column-gap: var(--pl37-step-gap);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  list-style: none;
}
.pl37-essay-how .pl37-how-step::before {
  display: none !important;
  content: none !important;
}
.pl37-essay-how .pl37-how-step::after {
  content: none;
}
/* The connector stretches with its own step, including wrapped paragraphs. */
.pl37-essay-how .pl37-how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--pl37-number-size) + 12px);
  bottom: calc(10px - var(--pl37-row-gap));
  left: calc(var(--pl37-number-width) / 2 - 1px);
  display: block;
  width: 2px;
  background: #d0d1d6;
  pointer-events: none;
}
.pl37-essay-how .pl37-step-number {
  position: relative;
  display: block;
  width: var(--pl37-number-width);
  margin: 0;
  padding: 0;
  color: var(--pl37-red);
  font-family: var(--pl37-font);
  font-size: var(--pl37-number-size);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
body.rf-home-page .pl37-essay-how .pl37-step-copy h3 {
  display: block;
  width: auto;
  max-width: none;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--pl37-ink) !important;
  background: none !important;
  box-shadow: none !important;
  font-family: var(--pl37-font) !important;
  font-size: clamp(25px, 2.55vw, 44px) !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.035em !important;
  text-align: left !important;
  text-transform: none !important;
  text-decoration: none !important;
  overflow-wrap: break-word;
}
.pl37-essay-how .pl37-how-art {
  position: relative;
  align-self: start;
  justify-self: start;
  width: calc(100% + 40px);
  min-width: 0;
  max-width: 760px;
  /* The transparent canvas uses the section's own top and side gutters. */
  margin: calc(-1 * var(--pl37-top-space)) 0 0 -16px;
  padding: 0;
}
.pl37-essay-how .pl37-how-art::before {
  content: "";
  position: absolute;
  inset: auto 10% 1.4% 16%;
  height: 3.6%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(28 19 19 / 19%) 0%, rgb(28 19 19 / 6%) 50%, transparent 72%);
  filter: blur(7px);
  pointer-events: none;
}
.pl37-essay-how .pl37-how-art img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  transform: none;
}

/* Tablet: a full-width heading, then steps alongside the illustration. */
@media (min-width: 681px) and (max-width: 1100px) {
  body.rf-home-page .pl37-essay-how {
    --pl37-number-width: 46px;
    --pl37-number-size: 52px;
    --pl37-step-gap: 17px;
    --pl37-row-gap: 28px;
    padding: 44px 0 48px;
  }
  .pl37-essay-how .pl37-how-shell {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-areas: "heading heading" "steps art";
    align-items: center;
    gap: 32px 28px;
    width: calc(100% - 56px);
    max-width: 960px;
  }
  .pl37-essay-how .pl37-how-copy { display: contents; }
  .pl37-essay-how .pl37-how-heading {
    grid-area: heading;
    margin: 0;
    text-align: center;
  }
  body.rf-home-page .pl37-essay-how .pl37-how-heading h2 {
    margin-bottom: 16px !important;
    font-size: clamp(36px, 4.8vw, 52px) !important;
    text-align: center !important;
  }
  .pl37-essay-how .pl37-how-heading h2 br { display: none; }
  .pl37-essay-how .pl37-how-heading p {
    font-size: 21px;
    text-align: center;
  }
  .pl37-essay-how .pl37-how-steps { grid-area: steps; }
  body.rf-home-page .pl37-essay-how .pl37-step-copy h3 {
    margin-bottom: 6px !important;
    font-size: clamp(22px, 2.35vw, 25px) !important;
    line-height: 1.25 !important;
  }
  .pl37-essay-how .pl37-step-copy p {
    font-size: 17px;
    line-height: 1.5;
  }
  .pl37-essay-how .pl37-how-art {
    grid-area: art;
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 340px;
    margin: 0;
  }
}

/* Mobile: readable steps first, with the complete mascot underneath. */
@media (max-width: 680px) {
  body.rf-home-page .pl37-essay-how {
    --pl37-number-width: 44px;
    --pl37-number-size: 48px;
    --pl37-step-gap: 14px;
    --pl37-row-gap: 26px;
    padding: 40px 0 42px;
  }
  .pl37-essay-how .pl37-how-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "steps" "art";
    gap: 30px;
    width: calc(100% - 36px);
  }
  .pl37-essay-how .pl37-how-copy { display: contents; }
  .pl37-essay-how .pl37-how-heading {
    grid-area: heading;
    margin: 0;
    text-align: center;
  }
  body.rf-home-page .pl37-essay-how .pl37-how-heading h2 {
    margin-bottom: 15px !important;
    font-size: clamp(29px, 8.6vw, 42px) !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }
  .pl37-essay-how .pl37-how-heading p {
    font-size: 18px;
    line-height: 1.45;
    text-align: center;
  }
  .pl37-essay-how .pl37-how-steps { grid-area: steps; }
  body.rf-home-page .pl37-essay-how .pl37-step-copy h3 {
    margin-bottom: 6px !important;
    font-size: 23px !important;
    line-height: 1.26 !important;
  }
  .pl37-essay-how .pl37-step-copy p {
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -0.02em;
  }
  .pl37-essay-how .pl37-how-step:not(:last-child)::after {
    top: calc(var(--pl37-number-size) + 8px);
    bottom: calc(8px - var(--pl37-row-gap));
  }
  .pl37-essay-how .pl37-how-art {
    grid-area: art;
    justify-self: center;
    width: min(310px, 83vw);
    max-width: 100%;
    margin: 0;
  }
}
@media (max-width: 359px) {
  body.rf-home-page .pl37-essay-how {
    --pl37-number-width: 38px;
    --pl37-number-size: 44px;
    --pl37-step-gap: 12px;
  }
  .pl37-essay-how .pl37-how-shell { width: calc(100% - 32px); }
  body.rf-home-page .pl37-essay-how .pl37-step-copy h3 { font-size: 22px !important; }
  .pl37-essay-how .pl37-step-copy p { font-size: 16px; }
}
