.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.gate__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--hdr);
  padding: 16px var(--pad);
}
.gate__bar img { height: 28px; width: auto; }
.gate__main {
  width: min(680px, calc(100% - 2 * var(--pad)));
  margin: auto;
  padding: 24px 0 48px;
  text-align: center;
}
.gate__main .chip { margin-inline: auto; }
.gate__main .h2 { margin-top: 16px; }
.gate__main .lead { margin-inline: auto; }
.gate__fit { margin-top: 28px; }
.gate__scale { --frame-h: 560px; }
.gate__frame {
  display: block;
  width: 100%;
  height: var(--frame-h);
  border: 0;
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}
/* Tally keeps "Made with Tally" on the submit row and never wraps it.
   The mark overlaps the button below about 440px, and again from about
   500px to 575px, where the words appear before there is room for them.
   Wide screens stay at 600px or more. Narrower ones lay the form out at
   460px, where only the mark shows and it clears the button, then scale
   that layout down to the screen. */
@media (max-width: 659px) {
  .gate__main { width: min(460px, calc(100% - 2 * var(--pad))); }
  .gate__fit { container-type: inline-size; }
  .gate__scale {
    height: calc(var(--frame-h) * 100cqw / 460px);
    overflow: hidden;
  }
  .gate__frame {
    width: 460px;
    max-width: none;
    transform: scale(calc(100cqw / 460px));
    transform-origin: top left;
  }
}
.gate__status { min-height: 1.6em; margin-top: 12px; color: var(--navy-body); }
