/* The desktop home page uses 40px side gutters and a 1080px content area. */
@media (min-width: 900px) {
  body[data-desktop-page]:not(.inline-coach-booking) {
    --mirage-page-width: min(1080px, calc(100% - 80px));
    min-width: 0;
  }

  body[data-desktop-page]:not(.inline-coach-booking) > .student-home-shell {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  body[data-desktop-page]:not(.inline-coach-booking) > :is(header, main, footer, .review-back, #kids-review),
  body[data-desktop-page] > .student-home-shell > :is(header, footer, .review-back) {
    box-sizing: border-box;
    width: var(--mirage-page-width) !important;
    min-width: 0;
    max-width: none !important;
    margin-inline: auto !important;
  }

  /* Keep the approved column proportions as the outer container narrows. */
  main .checkout-layout { grid-template-columns: minmax(0, 10fr) minmax(0, 9fr); }
  main :is(.success-layout, .failed-layout) { grid-template-columns: minmax(0, 31fr) minmax(0, 27fr); }
  main.lesson-page:not(#sauna-booking, #hammam-booking) .lesson-layout {
    grid-template-columns: minmax(0, 31fr) minmax(0, 26fr);
  }
  body[data-desktop-page="anna-about.html"] .about-layout {
    grid-template-columns: minmax(0, 29fr) minmax(0, 28fr);
  }
  main :is(.checkout-layout, .success-layout, .failed-layout, .lesson-layout, .about-layout) > * { min-width: 0; }
  main .lesson-picture, main .success-art, main .success-art img { max-width: 100%; }
  main .success-art { margin-inline: 0; }
  .schedule-page .schedule-activities-list { flex-wrap: wrap; justify-content: flex-start; row-gap: 20px; }

  body[data-coach]:not(.inline-coach-booking) #selection .periods #continue {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 134px !important;
    justify-self: end;
  }
  body[data-desktop-page="membership.html"] .before-buy,
  body[data-desktop-page="workout-choice.html"] .visit-formats { padding-inline-end: 8px; }
  body[data-desktop-page="promotion.html"] .hero { padding-inline-end: 10px; }
  .anna-page .approach-notes { padding-inline-end: 12px; }
  .schedule-page .schedule-coaches a > span { max-width: 100%; padding-inline: 5px; font-size: 14px; }
  main.lesson-page .lesson-slot { column-gap: clamp(8px, 1vw, 16px); flex-wrap: wrap; }
  main.lesson-page .lesson-slot small { white-space: nowrap; }
  :is(#sauna-booking, #hammam-booking) .lesson-consent > span {
    font-size: 12.5px;
    text-wrap: balance;
  }
  .tax-header, .tax-main { padding-inline: 0; }
  .tax-main .tax-contact { font-size: 14px; text-wrap: balance; }
  .tax-main label a { white-space: nowrap; }
  main .seo-directory a { text-wrap: balance; }
  body[data-desktop-page="knowledge.html"] .seo-directory { font-size: 15px; }
  #kids-review .coach-side-podeli > :is(div, h2, p, small) { max-width: 100%; }
  #kids-review .coach-side-podeli { min-width: 0; max-width: 100%; }
}

@media (min-width: 900px) and (max-width: 1159px) {
  #mirage-home-content .home-intro p { font-size: clamp(17px, calc(2.2vw - 1.7px), 23.65px); }
  #mirage-home-content .direction-grid .category { gap: 6px; padding-inline: 7px; }
  #mirage-home-content .direction-grid .category img { width: clamp(32px, 3.7vw, 44px); }
  #mirage-home-content .schedule-panel .week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  #mirage-home-content .schedule-panel .day { min-width: 0; }
  #mirage-home-content .schedule-panel > a.btn { white-space: normal; text-wrap: balance; padding-inline: 10px; }
  main :is(.success-summary small, .success-links a) { text-wrap: balance; }
}

@media (min-width: 900px) and (max-width: 1000px) {
  .student-flow .student-layout:has(.student-photo .student-hours) {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}
