/* Shared phone, tablet, and desktop corrections. */
main.self-made-page {
  width: min(1240px, 100%);
}

.self-made-page :where(section > div, article, form, figure) {
  min-width: 0;
}

.self-made-page :where(h1, h2, h3, p, li, a, strong, label) {
  overflow-wrap: anywhere;
}

.self-made-challenge-brand {
  max-width: 100%;
  min-width: 0;
}

.self-made-challenge-brand-offer {
  flex-wrap: wrap;
  white-space: normal;
  row-gap: .2em;
}

.self-made-challenge-brand-offer > span {
  min-width: 0;
}

.self-made-hero .self-made-subhead {
  font-size: 1rem;
  line-height: 1.4;
}

.self-made-page .self-made-honeypot {
  overflow: hidden;
}

/* Keep inline dates and pre-sale copy in the text flow, not bullet grid cells. */
.self-made-daily-experience li {
  display: block;
  position: relative;
  padding-left: 1.5rem;
}

.self-made-daily-experience li::before {
  position: absolute;
  left: 0;
  top: 0;
}

.self-made-form input:not([type=checkbox]),
.self-made-form select,
.self-made-form textarea {
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
}

.self-made-form button {
  font-size: .8rem;
  min-height: 48px;
}

.afford-hero,
.afford-cost,
.afford-key,
.afford-business,
.afford-story,
.afford-challenge {
  grid-template-columns: minmax(0, 1fr);
}

.afford-hero h1 {
  font-size: clamp(1.85rem, 8.4vw, 3.7rem);
}

.afford-formula li {
  grid-template-columns: 2.3rem minmax(0, 1fr);
}

.afford-business-steps article {
  grid-template-columns: 3rem minmax(0, 1fr);
}

.afford-challenge li {
  grid-template-columns: 3.2rem minmax(0, 1fr);
}

.enroll-refund-summary > div,
.enroll-start-line > div {
  min-width: 0;
}

.enroll-refund-summary a {
  width: auto;
}

.enroll-plan-grid {
  grid-template-columns: minmax(0, 1fr);
}

.enroll-plan-featured {
  border-color: var(--berry);
  background: #fff8df;
  box-shadow: 7px 7px 0 var(--self-made-yellow);
}

.enroll-checkout-action {
  text-align: center;
  padding: clamp(1.2rem, 4vw, 3rem);
}

.enroll-checkout-action p {
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}

.enroll-checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 28rem);
  min-height: 56px;
  border: 2px solid var(--navy-deep);
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--hot-pink);
  padding: 1rem;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.enroll-checkout-button:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 5px;
}

.directory .cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directory .card,
.obsession-card,
.socials a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.filters button {
  min-height: 44px;
}

@media (max-width: 1050px) {
  .directory .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .directory .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .directory .card,
  .directory .card:nth-child(n) {
    aspect-ratio: auto;
    min-height: 0;
  }

  .directory .card .card-photo {
    flex: none;
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .afford-hero-photo,
  .afford-cost-photo,
  .afford-key figure,
  .afford-story figure {
    transform: none;
    width: calc(100% - 9px);
  }
}

@media (min-width: 480px) and (max-width: 1023px) {
  .self-made-page > section:not(.self-made-mobile-banner) {
    padding-left: clamp(1.5rem, 5vw, 3.5rem);
    padding-right: clamp(1.5rem, 5vw, 3.5rem);
  }
}

@media (min-width: 900px) {
  .enroll-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .afford-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }

  .afford-hero h1 {
    font-size: clamp(2.05rem, 3.4vw, 3rem);
  }

  .afford-cost,
  .afford-key,
  .afford-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .afford-business {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .afford-challenge {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }

  .enroll-header .self-made-challenge-brand {
    width: min(640px, 55vw);
  }
}
