.custom_btn {
  margin-top: 35px;
}


.input-box {
  position: relative;
}


.button-box {
  position: relative;
}


/* intl-tel-input wraps input[name="phone_raw"] in a new .iti div that
   becomes the actual grid item, so the span-2 class on the original
   input no longer applies to layout. Mirror it onto the wrapper. */
@media (width>=40rem) {
  .signup_form .iti {
    grid-column: span 2 / span 2;
  }
}
.logo {
  max-width: 30px;
  display: inline-block;
}

footer {
  margin-top: 0;
}

@media screen and (max-width: 375px) {
  section .max-w-4xl {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  section .font-display.text-\[1\.9rem\] {
    font-size: 1.2rem !important;
  }

  section .text-\[15\.5px\] {
    font-size: 13px !important;
  }

  section .flex.size-full.flex-col.justify-end {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  section .p-6 {
    padding: 8px !important;
  }
}

@media screen and (max-width: 320px) {
  section .font-display.text-\[1\.9rem\] {
    font-size: 1rem !important;
  }

  section .text-\[15\.5px\] {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }

  section .max-w-4xl {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
}
/* Network banner: grow with its text instead of clipping it */
.xv-banner {
  height: auto !important;
  min-height: 12rem;
  display: flex;
}
.xv-banner > .relative.z-10 {
  height: auto;
  width: 100%;
  min-width: 0;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.xv-banner > .relative.z-10 > .flex-1 {
  min-width: 0;
}
@media (min-width: 640px) {
  .xv-banner { min-height: 13rem; }
}
@media (min-width: 768px) {
  .xv-banner { min-height: 14rem; }
}

/* Benefits hero card: keep the aspect ratio as a minimum, grow when the copy is longer */
.xv-hero-wrap {
  container-type: inline-size;
}
.xv-hero {
  aspect-ratio: auto !important;
  min-height: calc(100cqw * 5 / 4);
  display: flex;
}
.xv-hero > .relative.flex {
  height: auto;
  min-height: 100%;
  flex: 1 1 auto;
}
.xv-hero > .relative.flex > div {
  height: auto;
}
@media (min-width: 640px) {
  .xv-hero { min-height: calc(100cqw * 10 / 16); }
}
@media (min-width: 1024px) {
  .xv-hero { min-height: calc(100cqw * 9 / 21); }
}

/* Chart tabs + market table: fit long labels on narrow screens */
@media (max-width: 479px) {
  [role="tablist"] > [role="tab"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    letter-spacing: 0.06em;
  }
  [role="tabpanel"] table th,
  [role="tabpanel"] table td {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
  [role="tabpanel"] table th,
  [role="tabpanel"] table th button {
    letter-spacing: 0.04em;
  }
  [role="tabpanel"] table td.w-28 {
    width: 3.5rem;
  }
}
@media (max-width: 359px) {
  [role="tabpanel"] table th,
  [role="tabpanel"] table td {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
  [role="tabpanel"] table td.w-28 {
    width: 3rem;
  }
}

/* Never allow a horizontal page scroll (e.g. while side-sliding reveal animations run).
   Applied to body only: putting overflow on html breaks the sticky header. */
body {
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}
