/* Parent Guides — mobile / tablet responsive */

html {
  overflow-x: hidden;
}

body.pg-has-site-header {
  overflow-x: hidden;
}

/* Claude/static host locks layout to 1440px — unlock for real devices */
#dc-root .sc-host > div[style*="width: 1440"],
#dc-root .sc-host > div[style*="width:1440"],
body.pg-has-site-header .sc-host > div[style*="1440"],
body.pg-has-site-header .pg-page,
body.pg-has-site-header div[style*="width: 1440"],
body.pg-has-site-header div[style*="width:1440"] {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}

.pg-hero,
.pg-section,
.pg-footer,
.pg-newsletter {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .pg-hero,
  .pg-section,
  .pg-footer,
  .pg-newsletter {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .pg-hero__grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .pg-now-grid {
    grid-template-columns: 1fr !important;
  }

  .pg-newsletter__grid {
    grid-template-columns: 1fr !important;
  }

  .pg-footer__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
  }
}

@media (max-width: 768px) {
  .pg-hero,
  .pg-section,
  .pg-footer,
  .pg-newsletter {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .pg-hero {
    padding-top: 36px !important;
    padding-bottom: 40px !important;
  }

  .pg-section,
  .pg-newsletter {
    padding-top: 40px !important;
  }

  .pg-hero h1 {
    font-size: clamp(2rem, 9vw, 2.55rem) !important;
    letter-spacing: -1.2px !important;
    line-height: 1.08 !important;
  }

  .pg-section h2,
  .pg-newsletter h2 {
    font-size: clamp(1.55rem, 7vw, 2rem) !important;
    letter-spacing: -1px !important;
  }

  .pg-hero__grid {
    gap: 24px !important;
  }

  .pg-hero img[alt*="Preschool"],
  .pg-hero img[style*="height: 400px"] {
    height: 220px !important;
  }

  .pg-hero [style*="left: -34px"] {
    left: 12px !important;
    bottom: 12px !important;
    max-width: calc(100% - 24px);
  }

  .pg-hero [style*="top: -18px"],
  .pg-hero [style*="bottom: -22px"][style*="border-radius: 50%"] {
    display: none !important;
  }

  .pg-now-card {
    grid-template-columns: 1fr !important;
  }

  .pg-now-card img {
    min-height: 200px !important;
    height: 200px !important;
  }

  .pg-now-card > div[style*="padding: 36px"] {
    padding: 22px 18px !important;
  }

  #activity-finder > div[style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  #activity-finder [style*="background: #F1ECFF"] {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pg-printables [style*="grid-template-columns: 188px"],
  .pg-printables [style*="grid-template-columns: 188px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .pg-printables img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
  }

  .pg-section [style*="repeat(7"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .pg-section [style*="repeat(5"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pg-section [style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  .pg-section [style*="repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  .pg-newsletter__grid {
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }

  .pg-newsletter [style*="max-width: 480px"][style*="display: flex"] {
    flex-direction: column !important;
    max-width: 100% !important;
    width: 100%;
  }

  .pg-newsletter input,
  .pg-newsletter button {
    width: 100% !important;
    box-sizing: border-box;
  }

  .pg-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .pg-footer img[style*="height: 110px"] {
    height: 72px !important;
  }

  .pg-footer > div[style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  /* Play mode */
  .pg-play-step {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 18px !important;
  }

  [style*="z-index: 1000"][style*="position: fixed"] {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  [style*="z-index: 1000"] > div[style*="padding: 28px 56px"] {
    flex-wrap: wrap;
    padding: 18px !important;
    gap: 14px !important;
  }

  [style*="z-index: 1000"] [style*="font-size: 64px"] {
    font-size: clamp(1.7rem, 8vw, 2.3rem) !important;
    letter-spacing: -0.6px !important;
  }

  [style*="z-index: 1000"] [style*="font-size: 76px"] {
    font-size: 44px !important;
  }

  [style*="z-index: 1000"] [style*="font-size: 120px"] {
    font-size: 56px !important;
  }

  [style*="z-index: 1000"] [style*="padding: 28px 72px 48px"],
  [style*="z-index: 1000"] [style*="padding: 0 72px 60px"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
    flex-wrap: wrap;
    gap: 12px;
  }

  .pg-hero a[href="#activity-finder"],
  .pg-hero a[href="#printables"] {
    width: 100%;
    justify-content: center !important;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .pg-hero,
  .pg-section,
  .pg-footer,
  .pg-newsletter {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .pg-section [style*="repeat(7"],
  .pg-section [style*="repeat(5"] {
    grid-template-columns: 1fr !important;
  }
}
