.top {
  padding-top: env(safe-area-inset-top, 0px);
}

#form {
  scroll-margin-top: var(--form-scroll-margin, calc(100px + env(safe-area-inset-top, 0px)));
}

.form-title {
  margin: 0 0 16px;
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.15;
}

#form :is(input, select, textarea, button, .status) {
  scroll-margin-top: var(--form-scroll-margin, 100px);
  scroll-margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

/* Preserve the sticky bar's document footprint while the form is in use. */
.mbar.is-form-hidden,
body:has(#form :focus) .mbar {
  visibility: hidden;
  pointer-events: none;
}

/* Give the existing normal-width verification widget room on narrow screens. */
@media (max-width: 385px) {
  #form [data-sitekey] {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(300px, calc(100vw - 20px));
  }
}
