/* Site-wide device fit. Navigation markup/links are not overridden. */
html {
  overflow-x: clip;
}

/* body must not be a scroll container (overflow-x:hidden made it one and caused blank patches) */
body {
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

button,
.btn,
input,
select,
textarea,
.nav__list a,
.arrow-link {
  touch-action: manipulation;
}

.container,
.header__inner,
.task-shell,
.flow-panel,
.compass-stage,
.dash-welcome {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.site-header {
  padding-top: env(safe-area-inset-top);
}

.btn,
.btn--wide,
.btn--yellow,
.reg-form__submit,
.otp-submit,
.test-submit,
.success-pay {
  max-width: 100%;
}

@media (max-width: 1080px) {
  .nav__cta .btn {
    min-height: 44px;
  }
}

@media (max-width: 900px) {
  .compass-intro__journey {
    white-space: normal !important;
    overflow: visible;
  }

  .grade-float {
    position: static;
    width: min(100%, 280px);
    margin: 0 auto 16px;
  }
}

@media (max-width: 780px) {
  .registration-strip {
    min-height: 0;
    padding: 12px var(--gutter);
  }

  .registration-strip p {
    font-size: clamp(16px, 4.6vw, 20px);
    line-height: 1.25;
  }

  .pills {
    padding-inline: 8px;
  }

  .pills li {
    white-space: normal;
    text-align: center;
  }

  .footer__mascots img {
    width: min(100%, 420px);
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .reg-form__grid,
  .egrid,
  .fee-grid,
  .why__top,
  .audience {
    grid-template-columns: 1fr;
  }

  .otp-row {
    justify-content: center;
  }

  .otp-box {
    min-width: 40px;
  }

  .test-page__instructions,
  .test-form--modal .test-q,
  .test-form--modal .test-q__options label {
    word-break: break-word;
  }

  .test-form--modal .test-q__options label {
    min-height: 48px;
  }

  .modal-dialog,
  .test-congrats__modal {
    width: min(100%, 100%);
    margin-inline: 0;
  }
}

@media (max-width: 420px) {
  .hero__title-main,
  .hero__title-by,
  .section-title,
  .milestones__title,
  .fees__title,
  .rewards__title,
  .flow-panel__title {
    overflow-wrap: anywhere;
  }

  .btn--wide,
  .enroll > .container > .btn,
  .closing__btns .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    padding-block: 24px;
  }

  .hero__art {
    margin-block: 12px;
  }

  .hero__mascot {
    width: min(100%, 360px);
  }

  .task-shell {
    padding-block: 18px;
  }
}

@media (min-width: 681px) and (max-width: 1024px) {
  .reg-form__grid {
    gap: 18px 20px;
  }

  .egrid,
  .fee-grid {
    gap: 16px;
  }
}
