/* =========================================================================
   EARNED NEXT STEP — end-of-article module
   Replaces the "three equally weighted recommendations" pattern with
   a four-line ledger keyed to the reader's completed path.
   ========================================================================= */
.earned-next-step {
  width: 100%;
  max-width: 920px;
  margin: 5rem auto 3rem;
  padding: 2.5rem clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(248, 247, 244, 0.9) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 20px 40px -30px rgba(0, 0, 0, 0.18);
  font-family: "Inter", system-ui, sans-serif;
  position: relative;
}
.earned-next-step::before {
  content: "Earned next step";
  position: absolute;
  top: -0.65rem;
  left: 2rem;
  padding: 0.25rem 0.7rem;
  background: #111318;
  color: #f9fafb;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
}
.ens-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ens-row:last-child {
  border-bottom: none;
}
.ens-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
}
.ens-value {
  font-family: "Newsreader", "Instrument Serif", serif;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #111318;
  font-weight: 400;
}
.ens-value strong {
  font-weight: 600;
}
.ens-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    gap 0.2s ease;
}
.ens-link:hover {
  gap: 0.75rem;
}
.ens-row[data-kind="continue"] .ens-link {
  color: var(--ens-accent, #f43f5e);
  border-color: var(--ens-accent, #f43f5e);
}
.ens-row[data-kind="alt"] .ens-link {
  color: #202226;
  border-color: rgba(0, 0, 0, 0.35);
}
.ens-arrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}
.ens-series {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin-right: 0.5rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}
.ens-and {
  display: inline;
  color: #6b7280;
  margin: 0 0.3rem;
}


@media (max-width: 680px) {
  .earned-next-step {
    margin: 3.5rem auto 2rem;
    padding: 2rem 1.25rem;
  }
  .ens-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.85rem 0;
  }
  .ens-value {
    font-size: 1.05rem;
  }
}
