/* Responsive corrections shared by the presale and sales pages. */
@media (max-width: 900px) {
  .lesson-cards {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 24px;
  }

  .course-lesson {
    display: flex;
    grid-row: auto;
    height: auto;
  }

  .course-lesson > img {
    height: auto;
    max-height: 300px;
    aspect-ratio: 1.85;
  }
}

@media (max-width: 760px) {
  body > .page-header {
    gap: 8px;
  }

  .page-header .menu-toggle,
  body > .page-header > .button {
    flex-shrink: 0;
    min-height: 44px;
  }

  body > .page-header > .button {
    white-space: nowrap;
  }

  .reference-copy h1,
  .sales-version .reference-copy h1 {
    font-size: clamp(26px, 7vw, 38px);
    line-height: 1.12;
  }

  .reference-copy h1 > span {
    white-space: normal;
  }

  .sales-version .hero-sales-dates {
    font-size: 15px;
  }

  .sales-version .hero-sales-dates p {
    white-space: normal;
  }

  .sales-version .hero-sales-dates span {
    display: none;
  }

  .sales-version .hero-sales-dates strong {
    display: block;
    margin-top: 5px;
  }

  .sales-version #curso .support-block h3 {
    font-size: clamp(23px, 6vw, 30px);
    overflow-wrap: break-word;
  }

  #oferta .purchase-heading h3 {
    font-size: clamp(26px, 7vw, 30px);
    white-space: normal;
  }

  .button {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(6, 280px);
    gap: 14px;
  }

  .community-quote {
    padding: 20px;
  }

  #experiencias .community-quote .quote-text {
    font-size: 16px;
    -webkit-line-clamp: 5;
    max-height: 7.5em;
    overflow-wrap: anywhere;
  }

  .community-quote .testimonial-read {
    font-size: 13px;
  }

  .community-quote footer strong {
    font-size: 14px;
  }

  .community-quote footer small {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .page-header .header-brand {
    width: 60px;
  }
}
